home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / comunic / boyan51b.zip / BOYAN.DOC < prev    next >
Text File  |  1993-11-15  |  402KB  |  8,740 lines

  1.  
  2.  
  3.  
  4.     =========== BOYAN Registration Form ============ Version 5.1 ===========
  5.  
  6.          Phone orders:                             BBS orders:
  7.            (301)-805-7168                            (301)-805-1602
  8.     ------------------------------------------------------------------------
  9.     Remit to:
  10.                                   Justin Boyan
  11.                               BOYAN COMMUNICATIONS
  12.                                   P.O. Box 71
  13.                               Woodstock, MD  21163
  14.  
  15.     ------------------------------------------------------------------------
  16.     Please send:
  17.  
  18.     _____  BOYAN registration . . . . . . . . . . . . .ea $40.00 = $ _______
  19.  
  20.     _____  BOYAN registration & 5.25" disks . . . . . .ea $60.00 = $ _______
  21.              (includes two floppy disks, program, manual, and Quick Ref card)
  22.  
  23.     _____  BOYAN registration & 3.5" disk . . . . . . .ea $60.00 = $ _______
  24.              (includes one 720K disk, program, manual, and Quick Ref card)
  25.  
  26.  
  27.                                                         Subtotal = $ _______
  28.  
  29.  
  30.            Please add 15% if check is not U.S. currency . . . . .  $ _______
  31.  
  32.            Shipping and handling  . . . . . . . . . . . included = $    0.00
  33.  
  34.                                                            Total = $ _______
  35.  
  36.     ------------------------------------------------------------------------
  37.     Check enclosed [ ]         OR    Mastercard [ ]  VISA [ ]
  38.  
  39.            Card Number ____________________________ Expiration date ________ 
  40.     ------------------------------------------------------------------------
  41.  
  42.     Name:    _______________________________________________________________
  43.  
  44.     Company: _______________________________________________________________
  45.  
  46.     Address: _______________________________________________________________
  47.  
  48.              _______________________________________________________________
  49.  
  50.  
  51.     ========================================================================
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.                                                   BOYAN Communications
  70.  
  71.                                                              Version 5
  72.  
  73.                                            Professional User-Supported
  74.                                                Communications Software
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.                                                          USER'S MANUAL
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.                                 Copyright (C) 1986,1987,1989,1991,1993
  89.  
  90.                                                   BOYAN Communications
  91.                                                        16400 Lea Drive
  92.                                                       Bowie, MD  21163
  93.  
  94.                                           Phone orders: (301)-805-7168
  95.                                             BBS orders: (301)-805-1602
  96.                                                         
  97.                                            Support BBS: (301)-730-2917
  98.                                                RIME Network Forum #118
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.                                 SPECIAL THANKS
  114.  
  115.                                 Bonnie Anthony
  116.                                  Ed Bachmann
  117.                              Kitty & Steve Boyan
  118.                                  Lee Breeden
  119.                                 Bruce Felstein
  120.                                   Lyle Giuse
  121.                                   John Kopp
  122.                                   Jim Luhman
  123.                                  Kelly McGraw
  124.                                   John Navas
  125.                                   Jim Provan
  126.                                 Kent Stromsmoe
  127.                                 Dennis Tuchler
  128.                                  Tom Vervaeke
  129.                                  Erik Winfree
  130.                                        
  131.                                        
  132.                          Cover artwork by Jeff Hesser
  133.  
  134.                                        
  135.                                        
  136.                                        
  137.                                        
  138.                                        
  139.                                        
  140.                                        
  141.  
  142.                                        
  143.                                        
  144.                                        
  145.  
  146.                        All brand and product names are
  147.                      trademarks or registered trademarks
  148.                          of their respective holders.
  149.  
  150.                      Copyright (C) 1986-93, Justin Boyan
  151.                              All rights reserved
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.                                      ii
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.                                 Contents
  178.  
  179.  
  180.  
  181.         Chapter 1  Introduction                                      1
  182.           1.1  What Makes BOYAN Special? . . . . . . . . . . . . . . 1
  183.             1.1.1  Flexibility . . . . . . . . . . . . . . . . . . . 1
  184.             1.1.2  Features  . . . . . . . . . . . . . . . . . . . . 2
  185.             1.1.3  Ease of Use . . . . . . . . . . . . . . . . . . . 3
  186.           1.2  Licensing Agreement . . . . . . . . . . . . . . . . . 4
  187.             1.2.1  How to Order  . . . . . . . . . . . . . . . . . . 5
  188.               1.2.1.1  Order by Mail . . . . . . . . . . . . . . . . 5
  189.               1.2.1.2  Order by Phone  . . . . . . . . . . . . . . . 5
  190.               1.2.1.3  Order by BBS  . . . . . . . . . . . . . . . . 5
  191.             1.2.2  Corporate Licenses  . . . . . . . . . . . . . . . 5
  192.             1.2.3  Distribution of BOYAN . . . . . . . . . . . . . . 6
  193.           1.3  Support for Registered Users  . . . . . . . . . . . . 7
  194.           1.4  Disclaimer  . . . . . . . . . . . . . . . . . . . . . 7
  195.           1.5  Using This Manual . . . . . . . . . . . . . . . . . . 7
  196.  
  197.         Chapter 2  Getting Started with BOYAN                        9
  198.           2.1  System Requirements . . . . . . . . . . . . . . . . . 9
  199.           2.2  Setting BOYAN Up On Disk  . . . . . . . . . . . . . . 9
  200.             2.2.1  Files Included with BOYAN . . . . . . . . . . .  10
  201.           2.3  Running BOYAN for the First Time  . . . . . . . . .  11
  202.             2.3.1  Running BOYAN . . . . . . . . . . . . . . . . .  11
  203.             2.3.2  First-time Modem Setup  . . . . . . . . . . . .  11
  204.             2.3.3  BOYAN under Microsoft Windows . . . . . . . . .  12
  205.             2.3.4  BOYAN under DesqView  . . . . . . . . . . . . .  12
  206.           2.4  The World of BOYAN  . . . . . . . . . . . . . . . .  12
  207.             2.4.1  The Status Line . . . . . . . . . . . . . . . .  12
  208.             2.4.2  <Esc> = Go Back . . . . . . . . . . . . . . . .  13
  209.             2.4.3  The Help System . . . . . . . . . . . . . . . .  13
  210.             2.4.4  Using a Mouse . . . . . . . . . . . . . . . . .  13
  211.             2.4.5  The Line Editor . . . . . . . . . . . . . . . .  14
  212.  
  213.         Chapter 3  <Alt-C> Customizing BOYAN                        16
  214.           3.1  Configuring a Non-Hayes-Compatible Modem  . . . . .  17
  215.           3.2  Configuring a Nonstandard Comm Device . . . . . . .  17
  216.           3.3  Configuring a Two-Floppy System . . . . . . . . . .  18
  217.           3.4  Configuring a High-Speed Modem  . . . . . . . . . .  18
  218.           3.5  Config Area <S> -- Screen, Sound, Memory  . . . . .  19
  219.           3.6  Config Area <D> -- Disk and File Setup  . . . . . .  21
  220.  
  221.  
  222.  
  223.                                      iii
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.           3.7  Config Area <C> -- Communications options . . . . .  24
  234.           3.8  Config Area <E> -- Expert Communications Options  .  26
  235.           3.9  Config Area <M> -- Macros . . . . . . . . . . . . .  28
  236.             3.9.1  Basic Macro Commands  . . . . . . . . . . . . .  28
  237.             3.9.2  The 120 BOYAN Macros  . . . . . . . . . . . . .  29
  238.             3.9.3  Modem Dialing & Auto-macros . . . . . . . . . .  30
  239.             3.9.4  <Alt-K> Function Key Customization  . . . . . .  32
  240.           3.10  Config Area <A> -- BOYAN Action Modules  . . . . .  33
  241.             3.10.1  BAM Selection  . . . . . . . . . . . . . . . .  33
  242.             3.10.2  Terminal Emulation Configuration . . . . . . .  34
  243.             3.10.3  Host Mode Configuration  . . . . . . . . . . .  34
  244.           3.11  Config Area <T> -- Translation/filter table  . . .  35
  245.           3.12  Config Area <X> -- External File Transfer
  246.                 Protocols  . . . . . . . . . . . . . . . . . . . .  36
  247.             3.12.1  Auto-downloading . . . . . . . . . . . . . . .  38
  248.  
  249.         Chapter 4  BOYAN Command Capabilities                       39
  250.           4.1  Basic Commands  . . . . . . . . . . . . . . . . . .  39
  251.             4.1.1  <F1> Help Menu  . . . . . . . . . . . . . . . .  39
  252.             4.1.2  <Alt-F1> Function Key Menu  . . . . . . . . . .  39
  253.             4.1.3  <Alt-B> Beeps & Bells Toggle  . . . . . . . . .  40
  254.             4.1.4  <Alt-E> Echo Keyboard Toggle  . . . . . . . . .  40
  255.             4.1.5  <Alt-G> 43/50-Line Mode . . . . . . . . . . . .  40
  256.             4.1.6  <Alt-O> Restore Default Text Color  . . . . . .  40
  257.             4.1.7  <Alt-T> Translation Table Toggle  . . . . . . .  40
  258.             4.1.8  <Alt-X> Exit BOYAN  . . . . . . . . . . . . . .  40
  259.             4.1.9  <Alt-Z> Zap (Clear) Screen  . . . . . . . . . .  41
  260.             4.1.10  <Shift-Tab> Add Linefeeds Toggle . . . . . . .  41
  261.           4.2  Modem Commands  . . . . . . . . . . . . . . . . . .  41
  262.             4.2.1  <Alt-D> Dial a System . . . . . . . . . . . . .  41
  263.               4.2.1.1  Manual Dialing  . . . . . . . . . . . . . .  41
  264.               4.2.1.2  Code Number Dialing . . . . . . . . . . . .  42
  265.               4.2.1.3  After Dialing . . . . . . . . . . . . . . .  42
  266.               4.2.1.4  Dialing Directory Options . . . . . . . . .  43
  267.               4.2.1.5  Long-Distance Dialing Prefixes  . . . . . .  48
  268.               4.2.1.6  Uniform Dialing Prefixes  . . . . . . . . .  48
  269.               4.2.1.7  Disable Call Waiting  . . . . . . . . . . .  49
  270.             4.2.2  <Alt-H> Hang Up Modem . . . . . . . . . . . . .  49
  271.             4.2.3  <Alt-P> Parameter Change  . . . . . . . . . . .  49
  272.             4.2.4  <Alt-Q> Queue Redialing . . . . . . . . . . . .  50
  273.             4.2.5  <Ctrl-End> Send Modem Break Signal  . . . . . .  52
  274.             4.2.6  <Del> Send DEL character  . . . . . . . . . . .  52
  275.           4.3  BOYAN Action Modules  . . . . . . . . . . . . . . .  52
  276.             4.3.1  <Alt-A> Activate new Action Module  . . . . . .  52
  277.             4.3.2  <Alt-Equals> Previous Action Module . . . . . .  52
  278.             4.3.3  <Scroll-Lock> Switch Between BOYAN/Terminal
  279.                    Keysets . . . . . . . . . . . . . . . . . . . .  53
  280.             4.3.4  Action Module Descriptions  . . . . . . . . . .  53
  281.  
  282.  
  283.  
  284.  
  285.                                      iv
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.               4.3.4.1  ADM-3A, IBM-3101, TVI-925, and VT-52
  296.                        Emulations  . . . . . . . . . . . . . . . .  53
  297.               4.3.4.2  ANSI-BBS Emulation  . . . . . . . . . . . .  53
  298.               4.3.4.3  CONTROL Action Module . . . . . . . . . . .  53
  299.               4.3.4.4  DOORWAY Module  . . . . . . . . . . . . . .  54
  300.               4.3.4.5  DUMBTERM (Dumb Terminal)  . . . . . . . . .  54
  301.               4.3.4.6  GOSSIP Mode . . . . . . . . . . . . . . . .  54
  302.               4.3.4.7  HOST Action Module  . . . . . . . . . . . .  54
  303.               4.3.4.8  VT-100 Emulation  . . . . . . . . . . . . .  54
  304.           4.4  BOYAN File Transfers  . . . . . . . . . . . . . . .  55
  305.             4.4.1  Internal Protocols  . . . . . . . . . . . . . .  55
  306.             4.4.2  External Protocols  . . . . . . . . . . . . . .  56
  307.             4.4.3  Auto-Find Filename Feature  . . . . . . . . . .  57
  308.             4.4.4  <PgUp> Upload File  . . . . . . . . . . . . . .  58
  309.             4.4.5  Uploading a Message . . . . . . . . . . . . . .  58
  310.             4.4.6  <PgDn> Download File  . . . . . . . . . . . . .  59
  311.           4.5  Session Logging . . . . . . . . . . . . . . . . . .  60
  312.             4.5.1  <Alt-L> Log to Disk Toggle  . . . . . . . . . .  60
  313.             4.5.2  <Alt-S> Save Screen Image to Disk . . . . . . .  60
  314.             4.5.3  <Alt-U> Toggle BOYAN.USE Usage Log File . . . .  61
  315.             4.5.4  <Ctrl-PrtSc> Printer Log Toggle . . . . . . . .  61
  316.             4.5.5  <Shift-PrtSc> Save Screen Image to Printer  . .  61
  317.           4.6  DOS and File Commands . . . . . . . . . . . . . . .  61
  318.             4.6.1  <Alt-F> The File Manager  . . . . . . . . . . .  61
  319.             4.6.2  <Alt-J> Jump to DOS . . . . . . . . . . . . . .  64
  320.             4.6.3  <Alt-N> New Default Drive/Directory . . . . . .  65
  321.             4.6.4  <Alt-V> View File . . . . . . . . . . . . . . .  65
  322.             4.6.5  <Alt-W> Word Process (Edit) File  . . . . . . .  65
  323.             4.6.6  <Alt-Y> Free Space on Disk  . . . . . . . . . .  65
  324.             4.6.7  <Ins> Issue DOS Command . . . . . . . . . . . .  65
  325.           4.7  Scroll-Back Buffer, Scripts, etc. . . . . . . . . .  66
  326.             4.7.1  <Alt-R> Run Script File . . . . . . . . . . . .  66
  327.             4.7.2  <UpArrow> Scroll-Back Buffer  . . . . . . . . .  66
  328.             4.7.3  Script Learn Facility . . . . . . . . . . . . .  68
  329.               4.7.3.1  Example: Auto-Logon Scripts . . . . . . . .  68
  330.               4.7.3.2  Password Security Feature . . . . . . . . .  70
  331.               4.7.3.3  Details on Script Learning  . . . . . . . .  70
  332.             4.7.4  <Alt-M> Enter Macro Manually  . . . . . . . . .  71
  333.           4.8  BOYAN's Host Mode . . . . . . . . . . . . . . . . .  71
  334.             4.8.1  Preliminaries . . . . . . . . . . . . . . . . .  72
  335.             4.8.2  <Alt-I> Invoking Host Mode  . . . . . . . . . .  73
  336.             4.8.3  Using the Host  . . . . . . . . . . . . . . . .  73
  337.             4.8.4  Host User Command Menu  . . . . . . . . . . . .  74
  338.             4.8.5  Local Sysop Menu  . . . . . . . . . . . . . . .  75
  339.             4.8.6  Customizing HOST.BSC  . . . . . . . . . . . . .  77
  340.           4.9  BOYAN's Backspace Editor  . . . . . . . . . . . . .  78
  341.             4.9.1  <Backspace> Erase Previous Character  . . . . .  78
  342.             4.9.2  <LeftArrow> Forget Previous Character . . . . .  78
  343.             4.9.3  <Ctrl-Backspace> Erase Previous Word  . . . . .  78
  344.  
  345.  
  346.  
  347.                                       v
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.             4.9.4  <Ctrl-LeftArrow> Forget Previous Word . . . . .  78
  358.             4.9.5  <RightArrow> Un-erase Character . . . . . . . .  78
  359.             4.9.6  <Ctrl-RightArrow> Un-erase Word . . . . . . . .  78
  360.             4.9.7  Using the Backspace Editor  . . . . . . . . . .  78
  361.  
  362.         Chapter 5  BOYAN Power--Macros and Script Files             80
  363.           5.1  Overview  . . . . . . . . . . . . . . . . . . . . .  80
  364.           5.2  The Macro Programming Language  . . . . . . . . . .  80
  365.             5.2.1  String Output . . . . . . . . . . . . . . . . .  81
  366.             5.2.2  How to Read the Macro Definitions . . . . . . .  81
  367.               5.2.2.1  Conditional Macro Syntax  . . . . . . . . .  82
  368.             5.2.3  Modem Commands  . . . . . . . . . . . . . . . .  82
  369.             5.2.4  Terminal Characteristics  . . . . . . . . . . .  84
  370.             5.2.5  Backspace Buffer  . . . . . . . . . . . . . . .  85
  371.             5.2.6  Timing  . . . . . . . . . . . . . . . . . . . .  86
  372.             5.2.7  Handshaking . . . . . . . . . . . . . . . . . .  86
  373.             5.2.8  Dialing . . . . . . . . . . . . . . . . . . . .  88
  374.             5.2.9  Queue Redialing . . . . . . . . . . . . . . . .  89
  375.             5.2.10  Screen & Sound . . . . . . . . . . . . . . . .  90
  376.             5.2.11  Session Logging & Printing . . . . . . . . . .  93
  377.             5.2.12  DOS  . . . . . . . . . . . . . . . . . . . . .  94
  378.             5.2.13  File Transfers . . . . . . . . . . . . . . . .  96
  379.             5.2.14  User Variables . . . . . . . . . . . . . . . .  98
  380.             5.2.15  Macro Control  . . . . . . . . . . . . . . . . 100
  381.             5.2.16  Miscellaneous  . . . . . . . . . . . . . . . . 102
  382.             5.2.17  <Shift-F1> Trace Mode  . . . . . . . . . . . . 103
  383.           5.3  BOYAN Macro Tutorial, Examples  . . . . . . . . . . 104
  384.             5.3.1  Built-in Keystroke Examples . . . . . . . . . . 104
  385.             5.3.2  Auto-macro Examples . . . . . . . . . . . . . . 106
  386.             5.3.3  Yet More Key Examples!  . . . . . . . . . . . . 108
  387.           5.4  The BOYAN Command Line  . . . . . . . . . . . . . . 110
  388.           5.5  Script Files  . . . . . . . . . . . . . . . . . . . 111
  389.             5.5.1  Script-specific Macro Commands  . . . . . . . . 111
  390.             5.5.2  Automatic Logon Scripts . . . . . . . . . . . . 112
  391.             5.5.3  Running Script Files  . . . . . . . . . . . . . 113
  392.             5.5.4  During Script Execution . . . . . . . . . . . . 114
  393.             5.5.5  Script Examples . . . . . . . . . . . . . . . . 114
  394.             5.5.6  Technical Notes . . . . . . . . . . . . . . . . 115
  395.               5.5.6.1  The Macro Compiler  . . . . . . . . . . . . 115
  396.               5.5.6.2  Variable Prefixes: % vs. @  . . . . . . . . 116
  397.           5.6  Summary of Macro Variables  . . . . . . . . . . . . 117
  398.           5.7  Summary of Macro Commands . . . . . . . . . . . . . 120
  399.  
  400.         Appendix A  HELP!  Common Questions & Answers              133
  401.           A.1  Modem Questions . . . . . . . . . . . . . . . . . . 133
  402.           A.2  DOS Questions . . . . . . . . . . . . . . . . . . . 134
  403.           A.3  BAM Questions . . . . . . . . . . . . . . . . . . . 134
  404.           A.4  File Transfer Questions . . . . . . . . . . . . . . 135
  405.           A.5  Macro Questions . . . . . . . . . . . . . . . . . . 136
  406.  
  407.  
  408.  
  409.                                      vi
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.           A.6  Miscellaneous . . . . . . . . . . . . . . . . . . . 136
  420.  
  421.         Appendix B  BOYAN Error Messages                           137
  422.  
  423.         Appendix C  Glossary of BOYAN Terms                        138
  424.  
  425.         Appendix D  The VT-100 Secondary Keyset                    140
  426.           D.1  Default Key Layout  . . . . . . . . . . . . . . . . 140
  427.           D.2  Customization . . . . . . . . . . . . . . . . . . . 141
  428.  
  429.         Index                                                      143
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.                                      vii
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.                                   Chapter 1
  489.  
  490.                                  Introduction
  491.  
  492.  
  493.    1.1  What Makes BOYAN Special?
  494.  
  495.  
  496.    When BOYAN  Communications  was  first  released  in  1986, it set a new
  497.    standard  for  PC  communications software.   Now  in  its  fifth  major
  498.    revision, BOYAN perfects the features that made it famous:
  499.  
  500.     - A clean, consistent, and friendly interface.  One user compared using
  501.       BOYAN to driving a luxury sports car.
  502.  
  503.     - Innovative, powerful features.  PC Magazine once wondered "why nobody
  504.       else thought of them."
  505.  
  506.     - Above all, a philosophy:    if something is boring, then the computer
  507.       should do  it  for  you.   Once you try BOYAN 5... there's no looking
  508.       back!
  509.  
  510.    1.1.1  Flexibility
  511.  
  512.     - BOYAN supports interrupt-driven  communications with all serial ports
  513.       and modems, at speeds from 300 to 115,000  baud.   Both  hardware and
  514.       software  flow  control  are  supported  for  high-speed  modems  and
  515.       networking.
  516.  
  517.     - BOYAN  Action  Modules  allow  BOYAN  to  emulate  popular terminals,
  518.       including  VT-100,  VT-52,  TVI-925,  IBM-3101, ADM-3A, and ANSI-BBS.
  519.       Terminal emulations  use  their  own  "secondary"  keysets  which can
  520.       easily be customized.  Further emulations, as they are developed, can
  521.       be easily installed into BOYAN 5.
  522.  
  523.     - Speedy, reliable file transfers use a wide variety  of  common error-
  524.       checking protocols, including Xmodem, CRC-Xmodem,  Ymodem, 1K-Xmodem,
  525.       Ymodem-G,  1K-Xmodem-G,  ASCII,  Kermit,  Ymodem-batch,  and  Zmodem.
  526.       Additional  protocols  can  easily  be  integrated  into  BOYAN, too.
  527.       Hands-free "auto-downloading"  is  provided  for  any  protocol  that
  528.       supports it, including Zmodem, Bimodem, and MPt.
  529.  
  530.  
  531.  
  532.    1.1.1:  Introduction                                                   2
  533.    ________________________________________________________________________
  534.  
  535.  
  536.  
  537.  
  538.     - An extensive macro language with  over 300 commands and variables can
  539.       automate all your communication needs:
  540.  
  541.        * All  of BOYAN's command keys are  user-definable;  thus,  you  can
  542.          customize BOYAN's keyboard layout to exactly your own preferences.
  543.          (See section 5.3 for many useful examples.)
  544.  
  545.        * Auto-macros  give  you  total control over what  BOYAN  does  when
  546.          initializing, dialing, connecting, or hanging up your modem.
  547.  
  548.        * Shortcut  macros allow common passwords and long-distance  dialing
  549.          prefixes to be stored and used easily.
  550.  
  551.        * BOYAN  script  files can run  communications  sessions  completely
  552.          unattended,   supporting:     handshaking,   timing,   conditional
  553.          execution, block nesting, macro nesting, and much more.
  554.  
  555.        * BOYAN's Script Learn feature remembers what you type at all times.
  556.          After a session,  BOYAN  can  walk  you through what you typed and
  557.          build an automatic script file for  you.   You may edit the script
  558.          before  it  is  saved, so that your next session on that system is
  559.          hands-free!
  560.  
  561.        * Sample  script files are provided for  streamlining  your  use  of
  562.          CompuServe and common Bulletin Board Systems.
  563.  
  564.        * A simple "trace mode" helps you follow even the most sophisticated
  565.          macros and scripts.
  566.  
  567.     - BOYAN provides a Host Mode  which  allows  you  to  dial  in  to your
  568.       computer  from a remote system, read and  write  messages,  send  and
  569.       receive files, and run programs  remotely.  A built-in database holds
  570.       the name, password, and user level for up to 70 users.   Furthermore,
  571.       since  the  Host  Mode  is  written  as  a BOYAN script, it is  fully
  572.       customizable.
  573.  
  574.    1.1.2  Features
  575.  
  576.     - With BOYAN's famous automatic filename entry feature, you never again
  577.       have to type a filename twice before downloading a file.
  578.  
  579.     - BOYAN saves you time and money by allowing you to upload messages you
  580.       have prepared off-line.  Exclusive:  BOYAN determines the line prompt
  581.       character and handles awkward "word wraps."
  582.  
  583.     - A usage  log  records  the  length  of  all modem connections and the
  584.       efficiency of all file  transfers  for later reference.  This log can
  585.       verify your phone records, for example.
  586.  
  587.  
  588.  
  589.    1.1.2:  Introduction                                                   3
  590.    ________________________________________________________________________
  591.  
  592.  
  593.  
  594.  
  595.     - BOYAN works with DOS at all times:
  596.  
  597.        * Issuing any DOS command, running  any  program,  and  entering DOS
  598.          temporarily are possible during a communication session.
  599.  
  600.        * BOYAN uses your favorite file lister and word processor/editor.
  601.  
  602.        * A full, built-in File Manager allows you to scan disk directories,
  603.          copying and viewing files at the touch of a key.  Select files for
  604.          uploading as well as  BOYAN  script  files  directly from the File
  605.          Manager listing.
  606.  
  607.     - Dialing  directories maintain the names, numbers, parameters,  Action
  608.       Module, logon script,  file  transfer  protocol,  password,  and last
  609.       connect date for all the systems you ever  need  to  dial.   Editing,
  610.       sorting, searching, and printing a directory can all  be  done within
  611.       BOYAN.    Phone  numbers  can  be  automatically  "grabbed" from  the
  612.       terminal screen, making it  easy  to  add  to your dialing directory.
  613.       Multiple dialing directories  allow  you to organize your phone lists
  614.       any way you want.
  615.  
  616.     - A 20-number dynamic redialing queue stores the numbers which you dial
  617.       but fail to connect.    If you wish, BOYAN automatically redials each
  618.       of  the numbers in turn, showing the status of each system in a full-
  619.       screen display.  Numbers may be  added  to and deleted from the queue
  620.       at any time.
  621.  
  622.     - A  scroll-back  buffer  stores  hundreds  of lines of text which  has
  623.       scrolled  off  the  top of the screen.  Within the  buffer,  you  can
  624.       locate  specific strings, mark passages to be  printed  or  filed  to
  625.       disk, and automatically move to the beginning of the current session.
  626.  
  627.     - A  Gossip  Action  Module splits the screen into "local" and "remote"
  628.       windows, allowing  clear  on-line  conversations  between  two  modem
  629.       users.
  630.  
  631.     - The Doorway Action Module makes it possible to  run  any non-graphics
  632.       program remotely, over the modem.
  633.  
  634.    1.1.3  Ease of Use
  635.  
  636.     - Context-sensitive help screens are  available  at  all times with the
  637.       <F1>  key.
  638.  
  639.     - "Back up" or cancel the current action anytime with the <Esc> key.
  640.  
  641.     - BOYAN offers full mouse support.
  642.  
  643.  
  644.  
  645.    1.1.3:  Introduction                                                   4
  646.    ________________________________________________________________________
  647.  
  648.  
  649.  
  650.  
  651.     - A status line  keeps  you informed of the currently-connected system,
  652.       the elapsed time of the call, and the script file in control.
  653.  
  654.     - BOYAN's Line Editor facilitates  entering  and  editing  responses to
  655.       BOYAN prompts.
  656.  
  657.     - With BOYAN's exclusive backspace editor, typing errors can be quickly
  658.       corrected without retyping any erased words.  You can delete by word,
  659.       not just character-by-character.  Text  can be inserted or deleted on
  660.       a line at any time.
  661.  
  662.     - Configurable filter tables, screen dumps, disk logging,  printer log-
  663.       ging, automatic modem speed-detection, break signal support, and many
  664.       other  options  make  BOYAN superior for any  kind  of  microcomputer
  665.       communications.
  666.  
  667.  
  668.    1.2  Licensing Agreement
  669.  
  670.  
  671.    BOYAN Communications is Copyright  (C)  1986-1991  by Justin Boyan, P.O.
  672.    Box 71, Woodstock, MD  21163.
  673.  
  674.    BOYAN  Communications  is  not  free  software.  BOYAN is made  publicly
  675.    available only to allow users to  preview  BOYAN  on a trial basis.  Any
  676.    use  of  BOYAN  beyond this limited purpose requires registration as de-
  677.    scribed  below.    Use of unregistered copies of BOYAN Communications by
  678.    any individual,  business,  corporation,  government  agency,  or  other
  679.    institution is prohibited.
  680.  
  681.    Registration  of BOYAN Communications entitles you to  use  BOYAN  on  a
  682.    regular basis.  By registering your copies of BOYAN:
  683.  
  684.     - You support the ShareWare concept of marketing, which  allows  you to
  685.       "try before you buy" and encourages lower prices for all software;
  686.  
  687.     - You receive written registration confirmation and a BOYAN User ID;
  688.  
  689.     - You receive a code  number  which modifies Boyan to bypass the "Press
  690.       <Enter> to continue" screen and other ShareWare messages;
  691.  
  692.     - You are entitled to priority support on the BOYAN Support BBS;
  693.  
  694.     - You are automatically registered  for  any  future releases of BOYAN,
  695.       and you will receive mailed announcements of major upgrades.
  696.  
  697.  
  698.  
  699.    1.2.1:  Introduction                                                   5
  700.    ________________________________________________________________________
  701.  
  702.  
  703.  
  704.  
  705.    1.2.1  How to Order
  706.  
  707.    The  complete  BOYAN package, including  registration,  typeset  manual,
  708.    convenient Quick Reference Card, and the latest version  on  your choice
  709.    of  5.25'' or 3.5'' diskettes costs only $60.00.  If you do not wish  to
  710.    receive  the  manual,  Quick  Reference  Card,  or  diskettes, then  the
  711.    registration charge is $40.00.    Terrific  site licensing discounts are
  712.    described below in section 1.2.2.
  713.  
  714.    All domestic orders will be shipped by UPS,  except  those  to  P.O. box
  715.    addresses, which will  be  shipped  at  book rate (4th class).  Overseas
  716.    orders will be shipped by air, small packet rate.
  717.  
  718.    1.2.1.1  Order by Mail
  719.  
  720.    To order  by  mail,  please  use the order form at the beginning of this
  721.    manual,  and  enclose  a  check  or  money  order  made  out  to  "Boyan
  722.    Communications".  If payment is not in U.S. currency, please add  15% to
  723.    cover conversion costs.
  724.  
  725.    1.2.1.2  Order by Phone
  726.  
  727.    To order by VISA or Mastercard, call the  BOYAN  order  line  anytime at
  728.    (301)-805-7168.
  729.  
  730.    1.2.1.3  Order by BBS
  731.  
  732.    You may also  order  directly  from  the  BOYAN  Support  Bulletin Board
  733.    System.   To do this, log on to the BOYAN Support BBS at (301)-730-2917.
  734.    When  you  reach  the main menu, simply enter the command REGISTER.  You
  735.    will  be  prompted  to type your  name,  address,  phone,  and  VISA  or
  736.    Mastercard number.  Your order will be filled as soon  as  we can verify
  737.    your credit card.
  738.  
  739.    1.2.2  Corporate Licenses
  740.  
  741.    A  registered copy of BOYAN may be used on only one computer at a  time;
  742.    it  may  not  be  copied  for use on multiple computers at a time.    To
  743.    encourage corporations to register  their  usage  of BOYAN ethically, we
  744.    offer  large  discounts  on  registration  of multiple copies.  Use  the
  745.    following chart to determine the licensing cost for your needs:
  746.                If you need...          Then registration costs:
  747.                1-6 copies                     $ 40 each
  748.                up to 15 copies                $250 flat fee
  749.                up to 50 copies                $500 flat fee
  750.                unlimited site license         $750 flat fee
  751.  
  752.  
  753.  
  754.    1.2.2:  Introduction                                                   6
  755.    ________________________________________________________________________
  756.  
  757.  
  758.  
  759.  
  760.     - An  institution wishing a site license  should  appoint  one  contact
  761.       person to handle BOYAN's registration, support questions,  and update
  762.       notices.
  763.  
  764.     - Any  site license (seven or more copies) entitles  you  to  a  custom
  765.       version of BOYAN with your company name on the welcome screen.
  766.  
  767.     - Two copies of the BOYAN package (User's Manual, Quick Reference card,
  768.       and disks) are included with any site license.    Additional packages
  769.       are available for the regular price of $20 each.
  770.  
  771.     - Corporate purchase orders will be accepted on any order of  $60.00 or
  772.       more.
  773.  
  774.    1.2.3  Distribution of BOYAN
  775.  
  776.    In  accordance with the ShareWare distribution  method,  all  users  are
  777.    granted permission to copy  BOYAN  Communications  for  the trial use of
  778.    others, providing the following conditions are met:
  779.  
  780.     - BOYAN must be  copied  in completely unmodified form, and distributed
  781.       together with the full  and  unmodified  documentation  and licensing
  782.       information.
  783.  
  784.     - You may not sell or trade BOYAN for  money  or  any  valuable consid-
  785.       eration,  except  for  a nominal charge for  postage,  handling,  and
  786.       materials.
  787.  
  788.     - BOYAN may not be distributed in conjunction with  any  other product,
  789.       hardware or software, without  the  express  written consent of BOYAN
  790.       Communications.
  791.  
  792.    Failure  to abide by this limited license by  sale  or  modification  of
  793.    BOYAN Communications is a violation of the U.S. Copyright Act.
  794.  
  795.    Electronic Bulletin Board Systems, Public  PC Users Groups and clubs may
  796.    add BOYAN to their ShareWare  libraries subject to the conditions above.
  797.    In addition, BOYAN Communications is offering a special  50%  User Group
  798.    discount on version 5 registrations.   Club librarians, please write for
  799.    further information!
  800.  
  801.    ShareWare distributors may add BOYAN Communications  to  their libraries
  802.    subject to the conditions above, only after writing for and receiving my
  803.    written  consent.    It must be  stated  prominently  that  1) BOYAN  is
  804.    ShareWare, 2) the disks you send are for evaluation use only, and 3) the
  805.    BOYAN registration fee of $40.00 is payable directly to the author.
  806.  
  807.  
  808.  
  809.    1.3:  Introduction                                                     7
  810.    ________________________________________________________________________
  811.  
  812.  
  813.  
  814.  
  815.    1.3  Support for Registered Users
  816.  
  817.  
  818.    BOYAN support is provided on  the international RIME network of Bulletin
  819.    Board Systems, in Forum #118.  The home BBS for this forum is located in
  820.    Columbia,  Maryland  at  (301)-730-2917.    This BBS will give you  full
  821.    access to  the  BOYAN  message  and file areas on your first call:  just
  822.    register  as a new user, proceed to the main menu, and enter the command
  823.    J BOYAN.  At that point, you may  use  the  E  command  to  enter  a new
  824.    message.    Support  questions should be addressed to "ALL" and "echoed"
  825.    throughout the network.    This  BBS  also offers the command RIME xxx--
  826.    where  xxx is your area code--to obtain a list of RIME network BBS'es in
  827.    your local area code which may carry the BOYAN forum.
  828.  
  829.    If you prefer, you may  mail questions directly to Boyan Communications,
  830.    P.O.  Box  71,  Woodstock,  MD    21163.   Please include your BOYAN  ID
  831.    registration number if you write for support.
  832.  
  833.  
  834.    1.4  Disclaimer
  835.  
  836.  
  837.    Justin Boyan and BOYAN Communications  make  no  warranty,  expressed or
  838.    implied, concerning this program's merchantability  or  fitness  for any
  839.    particular use.   In  no  event  is Justin Boyan or BOYAN Communications
  840.    liable to you for any damages resulting from your use of the program.
  841.  
  842.  
  843.    1.5  Using This Manual
  844.  
  845.  
  846.    BOYAN 5 is  an  easy  program  to  use.    Its commands are mnemonic and
  847.    consistent, and on-line  help  screens  are  available  at  any  time by
  848.    pressing  <F1>.    Experienced users and new users alike will be able to
  849.    use BOYAN effectively without ever reading this manual.
  850.  
  851.    The help screens,  however,  summarize rather than fully explain BOYAN's
  852.    features.  The complete information is here.  If you try each command on
  853.    your PC as it is described, you will realize the full power of BOYAN.
  854.  
  855.    This manual also provides several helpful appendices:  "Common Questions
  856.    & Answers," "BOYAN error  messages,"  and  "A  Glossary of BOYAN Terms."
  857.    When something goes wrong, you're likely to find help there!
  858.  
  859.    Please note the following typographical conventions:
  860.  
  861.     - Text  in  brackets,  such as <Esc>, indicates a key for you to press.
  862.       When  entering  a  key combination such as <Ctrl-PgUp>, hold down the
  863.       first key and then hit the second.
  864.  
  865.  
  866.  
  867.    1.5:  Introduction                                                     8
  868.    ________________________________________________________________________
  869.  
  870.  
  871.  
  872.  
  873.     - A  word whose first letter is underlined,  like  This,  represents  a
  874.       command which you can select by pressing that letter  (in  this  case
  875.       T).
  876.  
  877.     - Text in a fixed-width font like  this  represents a string for you to
  878.       type or a BOYAN macro.
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.                                   Chapter 2
  895.  
  896.                           Getting Started with BOYAN
  897.  
  898.  
  899.    2.1  System Requirements
  900.  
  901.  
  902.    BOYAN has the following minimal requirements:
  903.  
  904.     - IBM PC, XT, AT, or compatible with at least 256K of memory
  905.     - DOS 2.0 or later
  906.     - At  least 600 K of free disk space (a hard disk is preferred, but not
  907.       required)
  908.     - An internal modem card OR a serial port and external modem
  909.     - Any 80-column monochrome, CGA, EGA or VGA display
  910.  
  911.    BOYAN  runs  well  under  multitasking  environments  such  as Microsoft
  912.    Windows (as a non-Windows  application)  and  Desqview.   BOYAN can also
  913.    make full use of a printer and mouse, although they are not required.
  914.  
  915.  
  916.    2.2  Setting BOYAN Up On Disk
  917.  
  918.  
  919.    The BOYAN program  and  reference manual-on-disk are compressed into two
  920.    "zipped" files, named BOYAN5A.ZIP and BOYAN5B.ZIP.  If you receive BOYAN
  921.    from a user group, ShareWare distributor, or Bulletin Board System, then
  922.    it will also be in the form of the BOYAN5A.ZIP and BOYAN5B.ZIP files.
  923.  
  924.    BOYAN provides a DOS batch file named INSTALL.BAT which  makes  it  easy
  925.    for you to get BOYAN up and running.  Install  extracts  the BOYAN files
  926.    from  the  BOYAN5A.ZIP  and  BOYAN5B.ZIP  archives  and  organizes  them
  927.    logically into subdirectories.
  928.  
  929.  
  930.  
  931.    2.2:  Getting Started with BOYAN                                      10
  932.    ________________________________________________________________________
  933.  
  934.  
  935.  
  936.  
  937.    Before running Install, you should have at least 600 K of free  space on
  938.    the disk where BOYAN will reside.  (If you have  only  360 K floppy disk
  939.    drives, you will need  two  blank,  formatted  diskettes.)  Follow these
  940.    simple steps to install BOYAN:
  941.  
  942.            1.  At the  DOS prompt, change to the disk drive containing
  943.                Distribution  Diskette  #1.    (For example, if Distri-
  944.                bution Disk #1 is in disk drive A, you  would  type  A:
  945.                <Enter>.)
  946.  
  947.            2.  Type INSTALL C:\BOY5 <Enter> to run the batch file.  It
  948.                will  create  a  new directory on your  C  drive  named
  949.                C:\BOY5.   Note:  to install  BOYAN  into  a  different
  950.                directory, you must specify  its  name  on  the command
  951.                line      instead,       e.g.,       INSTALL B:      or
  952.                INSTALL D:\COMM\BOYAN.
  953.  
  954.    The batch file will display messages on the screen to keep  you informed
  955.    as it is working.  If for any  reason  you  wish  to interrupt the batch
  956.    file  before  it  completes,  press  <Ctrl-Break>.      Otherwise,  when
  957.    installation completes successfully, you will  be  given  the  option to
  958.    "Press [space] to run BOYAN".  Pressing <space> will start BOYAN  up, as
  959.    described in section 2.3.
  960.  
  961.    2.2.1  Files Included with BOYAN
  962.  
  963.    During installation, the following files  will be extracted from the ZIP
  964.    files and copied onto your drive:
  965.  
  966.    BOYAN.COM            Main BOYAN program file
  967.    BOYAN.HLP            BOYAN help screens
  968.    BOYAN.00*            Overlay files #0 through #6
  969.    BOYAN.PIF            Program Information File for Microsoft Windows
  970.    B5-PIF.DVP           Program Information File for DesqView
  971.    BOYANNEW.DOC         Summary of what's new with BOYAN 5
  972.    BOYAN.DOC            The complete BOYAN user manual
  973.    *.BAM                Various BOYAN Action Modules
  974.    VT-100.CNF           Configuration file for VT-100 terminal emulation
  975.    *.BSC                Sample BOYAN Script files
  976.    README.DOC           Information about installing BOYAN
  977.    README2.DOC          Information about printing the BOYAN manual
  978.    REGISTER.DOC         A printer-ready BOYAN registration form
  979.    INSTALL.BAT          A DOS batch file used to install BOYAN 5
  980.    INSTALL#.BAT         An auxiliary batch file used by INSTALL.BAT
  981.    NEEDFREE.EXE         An auxiliary utility used by INSTALL.BAT
  982.  
  983.    The BOYAN distribution diskettes also contain various  external protocol
  984.    drivers  such  as   DSZ.ZIP  (Zmodem),  OZBEXT.ZIP  (Compuserve-B),  and
  985.    PCKERMIT.ZIP  (Kermit).    Finally,  both distribution diskettes contain
  986.  
  987.  
  988.  
  989.    2.2.1:  Getting Started with BOYAN                                    11
  990.    ________________________________________________________________________
  991.  
  992.  
  993.  
  994.  
  995.    PKUNZIP,  Phil  Katz's  utility for extracting programs  from  the  .ZIP
  996.    files.  Note:   these  programs  have  ShareWare licenses independent of
  997.    BOYAN's; please register the ones you use with their respective authors.
  998.  
  999.  
  1000.    2.3  Running BOYAN for the First Time
  1001.  
  1002.  
  1003.    2.3.1  Running BOYAN
  1004.  
  1005.    To start BOYAN, simply type BOYAN at the DOS prompt and hit <Enter>.  If
  1006.    you  have  set  everything up properly,  you  should  see  the  message,
  1007.    "Welcome to BOYAN Communications 5!"
  1008.  
  1009.    At  this  point,  you will have to answer five basic  questions:    what
  1010.    serial port does your modem use (Com1, Com2, Com3, or Com4); what is the
  1011.    highest speed your modem can handle (300-115000 baud); what parity (None,
  1012.    Even, or Odd) should  BOYAN  default to; can your monitor display colors
  1013.    (Yes or No); and do you have a BOYAN version 5  registration  code.   If
  1014.    you  are unsure about any of these questions and want to exit BOYAN, you
  1015.    may press <Esc> at any time.
  1016.  
  1017.    After you have answered these questions, a welcome screen  will  pop  up
  1018.    while BOYAN briefly initializes.  During this process, BOYAN creates the
  1019.    following files:
  1020.  
  1021.    BOYAN.CNF            (2000 bytes)   Information specific to your config-
  1022.                         uration.
  1023.    BOYAN.MAC            (14,700  bytes)  The 120 programmable  function-key
  1024.                         macros and modem commands.
  1025.    BOYAN.FON            (14,000 bytes)  A 200-entry dialing directory.
  1026.    BOYAN.PWD            (3000 bytes)   The  200 passwords for each entry in
  1027.                         BOYAN.FON
  1028.  
  1029.    The  next time you run BOYAN, all of these files will already be present
  1030.    in the directory, and all initialization will occur automatically.
  1031.  
  1032.    When BOYAN's initialization is  complete,  the  screen clears, and BOYAN
  1033.    initializes  the modem with the "ATX4S0=0" command.    The  Status  Line
  1034.    reports, "Communication ready."
  1035.  
  1036.    2.3.2  First-time Modem Setup
  1037.  
  1038.  
  1039.    Before trying to establish your  first connection with BOYAN, you should
  1040.    consult  your  modem  manual  to  be  sure  that  your modem is properly
  1041.    installed.  If  at all possible, you should set up the modem so that the
  1042.    "Data Terminal Ready" signal  and  "Carrier  Detect" signal are ENABLED,
  1043.    rather than ALWAYS ON.  The exact way to do this  varies  from  modem to
  1044.  
  1045.  
  1046.  
  1047.    2.3.2:  Getting Started with BOYAN                                    12
  1048.    ________________________________________________________________________
  1049.  
  1050.  
  1051.  
  1052.  
  1053.    modem.    Many  modems,  including  the  Hayes  2400 and  the  Practical
  1054.    Peripherals 9600SA, require the command  AT&C1&D2&W  <Enter>,  which you
  1055.    may type from BOYAN's terminal mode exactly as shown.    These  settings
  1056.    will be stored  even after your modem is turned off, so you only need to
  1057.    type this command once.    On a U.S. Robotics Courier (1200,2400,or HST)
  1058.    modem, you must flick modem toggle  switches  #1  and #6 to OFF; this is
  1059.    the factory setting for their modems built since 1989.
  1060.  
  1061.    2.3.3  BOYAN under Microsoft Windows
  1062.  
  1063.    BOYAN runs fine  as  a "non-Windows application" under Microsoft Windows
  1064.    3.0.   A PIF (Program Information File) for  Windows  is  included  with
  1065.    BOYAN.   To install BOYAN into a group window in the Program Manager, do
  1066.    the following:
  1067.  
  1068.       1.  Select  the  group  for  BOYAN  (for  example,  the  "Non-Windows
  1069.           Applications" group) and make that group the current window.
  1070.  
  1071.       2.  Select "New" from the Files menu to add a new item to the group.
  1072.  
  1073.       3.  Enter drive:\path\BOYAN.PIF  as  the  item  command  line,  where
  1074.           drive:\path is  your  BOYAN  directory  (e.g.,  C:\BOY5).   Enter
  1075.           anything you like for the item description and BOYAN icon.
  1076.  
  1077.    Please  consult  your  Windows  manual  for  details  on installing  new
  1078.    applications.
  1079.  
  1080.    2.3.4  BOYAN under DesqView
  1081.  
  1082.    BOYAN also runs well in the DesqView multitasking environment.  BOYAN is
  1083.    "DesqView-friendly"  in that it releases unused  portions  of  its  time
  1084.    slice for other programs to use.  The B5-PIF.DVP file provides a default
  1085.    configuration for running BOYAN 5 under DesqView.
  1086.  
  1087.  
  1088.    2.4  The World of BOYAN
  1089.  
  1090.  
  1091.    Welcome!  BOYAN is now in "terminal mode,"  ready  to  begin  a communi-
  1092.    cations session.  You may now  type  modem commands directly, or use any
  1093.    of BOYAN's built-in commands.  There are several features common  to the
  1094.    whole program with which you should become familiar.
  1095.  
  1096.    2.4.1  The Status Line
  1097.  
  1098.  
  1099.    The bottom  line  of  the  screen is called the Status Line.  The Status
  1100.    Line is divided into three parts--left, middle, and right.
  1101.  
  1102.  
  1103.  
  1104.    2.4.1:  Getting Started with BOYAN                                    13
  1105.    ________________________________________________________________________
  1106.  
  1107.  
  1108.  
  1109.  
  1110.     - The left part of the status  line  is  used by BOYAN to interact with
  1111.       you.  When BOYAN needs to display a message or get your response to a
  1112.       prompt, it does so here.
  1113.  
  1114.     - The  middle part of the line tells you which version of BOYAN you are
  1115.       using.  When a "script file" takes control, its  name  flashes  here.
  1116.                                                          2 
  1117.       Furthermore, during terminal emulation, a  small       here indicates
  1118.       that you have selected the secondary keyset, not the primary keyset.
  1119.  
  1120.     - The right part of the line displays information about the  system you
  1121.       dialed  most recently.  When you have made  a  connection,  the  line
  1122.       shows the name of the on-line  system  as well as the running elapsed
  1123.       time of the call.
  1124.  
  1125.    2.4.2  <Esc> = Go Back
  1126.  
  1127.    Whenever  you need to "go back" or abort  your  current  operation  with
  1128.    BOYAN, press the <Esc> key.  This is one of BOYAN's most handy features;
  1129.    you can never get stuck.  Remember, <Esc> to go back.
  1130.  
  1131.    If you  have  a  mouse,  pressing its right button is always the same as
  1132.    pressing <Esc>.
  1133.  
  1134.    2.4.3  The Help System
  1135.  
  1136.    BOYAN's context-sensitive help screens are accessible  anytime  with the
  1137.    <F1> key.  When you press <F1>, BOYAN displays the screen most likely to
  1138.    help you.  To scan all the help screens, press <F1> while viewing a help
  1139.    screen.    This  brings   up   Help  Page  B,  the  Help  Screen  Index.
  1140.    Instructions  there explain how to use the <PgUp>  and  <PgDn>  keys  to
  1141.    scroll through all 22 help pages.    You  can also instantly view any of
  1142.    the screens by pressing the letter associated with it on the Help Index.
  1143.  
  1144.    If you are  in  terminal  mode,  pressing  <F1> brings up a special help
  1145.    screen,  the BOYAN Command Menu.  If you have a mouse, clicking the left
  1146.    mouse button also brings up the Command Menu.  Any command from the list
  1147.    can be chosen and executed while you are viewing this  help  screen.  In
  1148.    the lower-right quarter of the screen, the current on/off state  of each
  1149.    of the "toggle" commands  is  shown.  BOYAN commands are described fully
  1150.    in chapter 4.
  1151.  
  1152.    2.4.4  Using a Mouse
  1153.  
  1154.  
  1155.    BOYAN  5  offers  a  complete  interface  for  the Microsoft  Mouse  and
  1156.    compatibles.   As you move the mouse pointer over a BOYAN menu, a scroll
  1157.    bar  moves  with  it, highlighting the option  underneath  the  pointer.
  1158.    Press the left button to select the highlighted option.
  1159.  
  1160.  
  1161.  
  1162.    2.4.4:  Getting Started with BOYAN                                    14
  1163.    ________________________________________________________________________
  1164.  
  1165.  
  1166.  
  1167.  
  1168.    When you are responding to a BOYAN prompt (not in a menu), you may press
  1169.    the  left button to accept the default response.  The left button is the
  1170.    same as the <Enter> key in this case.
  1171.  
  1172.    As mentioned above, the right button is always  the  same  as  the <Esc>
  1173.    key; press the right mouse button to "go back" at any time.
  1174.  
  1175.    The Dialing Directory, File Manager,  Redialing  Queue,  and Scroll-Back
  1176.    Buffer  offer  special  mouse  support,  including a 1-line menu at  the
  1177.    bottom of the screen.  Mouse  commands  specific to those areas of BOYAN
  1178.    are described later in this manual.
  1179.  
  1180.    If you have trouble using your mouse with BOYAN, please consult Appendix
  1181.    A, "Common Questions and Answers."
  1182.  
  1183.    2.4.5  The Line Editor
  1184.  
  1185.  
  1186.    When using  BOYAN's interactive commands, you are often asked questions.
  1187.    The simplest way to respond  is  to  type  in  your  response  and press
  1188.    <Enter>.   However, if you make a mistake  while  typing,  BOYAN's  Line
  1189.    Editor  lets  you quickly correct it.   Also,  BOYAN  often  provides  a
  1190.    "default" value--a suggested  response--for  its  questions.    The Line
  1191.    Editor allows you to modify, replace, or accept BOYAN's  default.    The
  1192.    following are the Line Editor commands, which are available  to  you  at
  1193.    any time as you respond to a BOYAN prompt:
  1194.  
  1195.         Accept entry as shown . . . . . . . . .<Enter> or left mouse button
  1196.         Move left one character . . . . . . . . . . . . . . . . <LeftArrow>
  1197.         Move right one character  . . . . . . . . . . . . . . .<RightArrow>
  1198.         Move left one word  . . . . . . . . . . . . . . . .<Ctrl-LeftArrow>
  1199.         Move right one word . . . . . . . . . . . . . . . <Ctrl-RightArrow>
  1200.         Go to beginning of entry  . . . . . . . . . . . . . . . . . .<Home>
  1201.         Go to end of entry  . . . . . . . . . . . . . . . . . . . . . <End>
  1202.         Backspace delete  . . . . . . . . . . . . . . . . . . . <Backspace>
  1203.         Delete character under cursor . . . . . . . . . . . . . . . . <Del>
  1204.         Delete to end of entry  . . . . . . . . . . . . . . . . .<Ctrl-End>
  1205.         Restore BOYAN's provided default  . . . . . . . . .<Ctrl-Backspace>
  1206.         Toggle Insert Mode  . . . . . . . . . . . . . . . . . . . . . <Ins>
  1207.           Insert Mode ON:                                   flashing cursor
  1208.           Insert Mode OFF:                                     block cursor
  1209.  
  1210.    These commands are also listed on Help Screen E, which  you  can view by
  1211.    keying the <F1><F1>E sequence at any time.
  1212.  
  1213.    Anxious to try an example?  From terminal mode, press the <Alt-F> key to
  1214.    call up BOYAN's File  Manager;  then press <P> (which stands for Pattern
  1215.    Mark).  You will see the  "MARK"  prompt, followed by a default response
  1216.    of "*.*".   The  Line Editor cursor is over the first star.  To mark all
  1217.  
  1218.  
  1219.  
  1220.    2.4.5:  Getting Started with BOYAN                                    15
  1221.    ________________________________________________________________________
  1222.  
  1223.  
  1224.  
  1225.  
  1226.    files  starting  with  BOYAN,  you  would change "*.*" to "BOYAN*.*"  by
  1227.    typing <Ins> BOYAN.  Pressing <Ins> turns on  Insert  Mode  so  that the
  1228.    "*.*" shifts over as you type.  Before pressing  <Enter>,  experiment  a
  1229.    little  with  the  Line Editor commands.  When you do press <Enter>, you
  1230.    will see little marks next to each filename starting with "BOYAN".   (If
  1231.    you would like to experiment with  the  File Manager, you may press <F1>
  1232.    for  help,  or see section 4.6.1.)  Press <Esc> when you  are  ready  to
  1233.    return  to  terminal  mode.    You  will  find the Line Editor easy  and
  1234.    convenient after a little time with BOYAN.
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.                                   Chapter 3
  1251.  
  1252.                           <Alt-C> Customizing BOYAN
  1253.  
  1254.  
  1255.    BOYAN provides  dozens of configurable options for great flexibility and
  1256.    power.    For  example,  you  can customize BOYAN's screen colors,  disk
  1257.    directory usage,  modem  dialing  commands,  and  many  key assignments.
  1258.    Luckily,  most  of  these  options  will be perfectly suitable at  their
  1259.    preset  (default)  values.   If you are just starting with BOYAN, you do
  1260.    not need to  concern  yourself with reconfiguring BOYAN's options unless
  1261.    you fall into one of the following categories:
  1262.  
  1263.     - You own a nonstandard modem which does not use the Hayes command set,
  1264.       or you wish to select "pulse" rather than "Touch-Tone" dialing.   See
  1265.       section 3.1.
  1266.  
  1267.     - Your modem is plugged into a nonstandard serial device (a  port other
  1268.       than Com1, Com2, IBM-PC Com3, or IBM-PC Com4).  See section 3.2.
  1269.  
  1270.     - You are running BOYAN on a system with two 360K floppy drives, and no
  1271.       hard disk.  See section 3.3.
  1272.  
  1273.     - You use a modem which allows you to lock the communications port at a
  1274.       high speed (4800 baud or greater) while actually connected at a lower
  1275.       speed.  Most  modems  with  built-in  MNP  error  control  offer this
  1276.       feature.  See section 3.4.
  1277.  
  1278.    If you do not fit  into  any  of  those  categories,  BOYAN  should work
  1279.    perfectly without your having to  perform any special configuration.  In
  1280.    that case, feel free to skip  ahead  to  chapter 4, where you will learn
  1281.    how to telecommunicate with BOYAN!
  1282.  
  1283.    BOYAN's built-in configuration program makes  BOYAN  easy  to  tailor to
  1284.    your own needs.  Call up  the  configuration menu by pressing <Alt-C>; a
  1285.    menu  of configuration areas will appear.  You may also use the  <Alt-K>
  1286.    command  key to go directly to Configuration Area  <M>  (macro  and  key
  1287.    configuration).    The  rest  of  this  chapter  describes each  of  the
  1288.    configuration areas in detail,  beginning  with section 3.5.  Note:  any
  1289.    configuration changes you make are  automatically  saved  to  disk right
  1290.    away.
  1291.  
  1292.  
  1293.  
  1294.    3.1:  <Alt-C> Customizing BOYAN                                       17
  1295.    ________________________________________________________________________
  1296.  
  1297.  
  1298.  
  1299.  
  1300.    3.1  Configuring a Non-Hayes-Compatible Modem
  1301.  
  1302.  
  1303.    The Hayes command set is emulated by almost all popular modems.  If your
  1304.    modem  is  not  Hayes-compatible, however, you will have to consult your
  1305.    modem manual to edit the following BOYAN settings:
  1306.  
  1307.     - Modem response messages:  Configuration Area <C>, options D-I.
  1308.  
  1309.     - Modem  dialing command:  Configuration Area  <M>,  subarea  A,  macro
  1310.       number 1.
  1311.  
  1312.    In particular, BOYAN's modem dialing command is preset to use Touch-Tone
  1313.    dialing.  If your modem/phone line does not support Touch-Tone, you must
  1314.    configure BOYAN to use pulse dialing instead, as follows:
  1315.  
  1316.       1.  From the main <Alt-C> configuration menu, select Macros.
  1317.       2.  From the Macros menu, press A for Macros 1-10.
  1318.       3.  Type 1 <Enter> to edit the "Dialing command."
  1319.       4.  Use the <RightArrow> key to position the cursor  over  the second
  1320.           "T" in "ATDT"; then press P, replacing the T.  The command should
  1321.           now read, "ATDP @SF {".  Press  <Enter>  to  accept  your change.
  1322.           (If  you  make  a  mistake,  press <Esc> instead of <Enter>,  and
  1323.           return to step 3.)
  1324.       5.  Press <Esc> twice to return to the main configuration menu.
  1325.  
  1326.  
  1327.    3.2  Configuring a Nonstandard Comm Device
  1328.  
  1329.  
  1330.    The standard IBM-PC provides for only two serial  devices  (ports), Com1
  1331.    and Com2.  However, more are often needed, and  BOYAN  provides  support
  1332.    for two additional devices, named Com3 and Com4.  To use  those devices,
  1333.    BOYAN must know the exact "address" in computer memory where  the device
  1334.    is located.  BOYAN comes preconfigured with the addresses occupied  by a
  1335.    typical Com3 device and a typical Com4 device, so if  you  are using one
  1336.    of those, BOYAN will work without additional configuration.  However, if
  1337.    you try dialing  with  BOYAN  and  find that "nothing happens," then you
  1338.    need to consult  the  manual  that  came  with the port to determine the
  1339.    proper addresses.  In particular, BOYAN must be reconfigured to use Com3
  1340.    or Com4 on the IBM PS/2  computers.   Port addresses are configurable in
  1341.    BOYAN's Configuration Area  <E>,  options  M-P.    See  section  3.8 for
  1342.    further details.
  1343.  
  1344.  
  1345.  
  1346.    3.3:  <Alt-C> Customizing BOYAN                                       18
  1347.    ________________________________________________________________________
  1348.  
  1349.  
  1350.  
  1351.  
  1352.    3.3  Configuring a Two-Floppy System
  1353.  
  1354.  
  1355.    Two of BOYAN's features, the Automatic Usage Log  and  External Protocol
  1356.    file transfers, require more than the 360K of disk space available  on a
  1357.    standard 5.25-inch floppy drive.  Therefore, to use these features  on a
  1358.    system with two 360K floppies but no hard drive, you must configure them
  1359.    to use the B: floppy drive, as follows:
  1360.  
  1361.       1.  From BOYAN's terminal mode  (the  "Communication  ready" screen),
  1362.           press <Alt-C>, D  to  call  up  Configuration Area D: Disk & File
  1363.           setup.
  1364.  
  1365.       2.  Press H to edit the external protocol path, and type  B: <Enter>.
  1366.           Now BOYAN will assume that the external protocols  (on  your disk
  1367.           labeled Protocol) will be found in the B: drive.
  1368.  
  1369.       3.  Press  J  to  enable the usage log (option=YES).  Then press K to
  1370.           edit the usage log filename, and type:  B:BOYAN.USE <Enter>.  Now
  1371.           the usage log will be maintained on the B:  drive  (the  Protocol
  1372.           disk).
  1373.  
  1374.  
  1375.    3.4  Configuring a High-Speed Modem
  1376.  
  1377.  
  1378.    High-speed modems are available which use automatic data-compression and
  1379.    error-checking  to  provide  reliable  communication at speeds exceeding
  1380.    9600 bps.    To  get  the maximum throughput from such a modem, you must
  1381.    configure several BOYAN  options.   The following discussion pertains to
  1382.    the US Robotics Courier HST, currently the most popular 9600 baud modem,
  1383.    but similar steps  would  work  for  the Hayes 9600 and other high-speed
  1384.    modems; please consult your modem manual for details.
  1385.  
  1386.       1.  From BOYAN's terminal mode  (the  "Communication  ready" screen),
  1387.           type   the   following   modem   command,   exactly   as   shown:
  1388.           AT&B1&N0&H1&W <Enter>.  This  instructs  your  USR Courier HST to
  1389.           communicate with the  remote  computer  at  its  highest possible
  1390.           speed, and to communicate  with  your  local  computer at a fixed
  1391.           speed  at all times.  It also tells the modem to use CTS/RTS Flow
  1392.           Control to insure that BOYAN's buffers do not overflow.
  1393.  
  1394.       2.  Press <Alt-C> to call up BOYAN's configuration menu, and select C
  1395.           for Communications Options.  Inside Configuration Area <C>, press
  1396.           B repeatedly until the modem speed of 19200 baud appears.   Press
  1397.           <Esc> to return to the main configuration menu.
  1398.  
  1399.  
  1400.  
  1401.    3.4:  <Alt-C> Customizing BOYAN                                       19
  1402.    ________________________________________________________________________
  1403.  
  1404.  
  1405.  
  1406.  
  1407.       3.  Select  E for Expert Communications Options.   Press  C  to  turn
  1408.           CTS/RTS  flow  control  ON, and press F to change the Auto-Detect
  1409.           connect speed setting to NO.   Press  <Esc> to return to the main
  1410.           configuration menu.
  1411.  
  1412.       4.  Select M  for  Macros,  and  type  1  <Enter> to edit the Dialing
  1413.           Command macro.   Then type <Ins> \CS[19200] <Enter>, changing the
  1414.           macro into \CS[19200] ATDT @SF { .   This  macro  tells  BOYAN to
  1415.           change the speed to 19200  baud  immediately  before  dialing any
  1416.           number, regardless of the speed selected for that  system  in the
  1417.           dialing directory.
  1418.  
  1419.    Following those four steps  will  squeeze  every  drop of speed possible
  1420.    from your US Robotics Courier HST modem!
  1421.  
  1422.    For MNP-compatible modems, you  may  wish  to  use two alternate dialing
  1423.    commands (in  BOYAN  macros  #1  and  #2):   one for normal, MNP-enabled
  1424.    dialing, and one for disabling MNP before dialing.  For example,  on MNP
  1425.    modems made by Intel and  Practical Peripherals, you would configure the
  1426.    following dialing commands in Configuration Area <M>:
  1427.  
  1428.     - Macro #1:  AT"\N3"\V1DT@SF{
  1429.     - Macro #2:  AT"\N0DT@SF{
  1430.  
  1431.    (Other modems may use different commands.)  To specify  that  a  dialing
  1432.    directory entry should use the alternate dialing command (#2) instead of
  1433.    the  normal command (#1), you simply append the letter "a" to the end of
  1434.    the entry's phone number.
  1435.  
  1436.    Note:  processing high-speed transmissions is a very sensitive operation
  1437.    which may be affected by  RAM-resident programs such as screen-savers or
  1438.    "pop-up"  utilities.     If  you  notice  missing  characters  or  other
  1439.    abnormalities during  high-speed  communication,  removing  the resident
  1440.    programs  from  memory  may help.   You  might  also  try  reducing  the
  1441.    communication speed; even  a  80386-class machine may lose characters at
  1442.    57600 baud!    A  final  option  would  be  to  invest  in  the National
  1443.    Semiconductor 16550AN UART chip, which provides automatic FIFO buffering
  1444.    and can significantly reduce software overhead.  If you have  a 16550AN,
  1445.    you can enable its FIFO buffering with BOYAN's macro  command  \BU+,  as
  1446.    described in section 5.2.4.
  1447.  
  1448.  
  1449.    3.5  Config Area <S> -- Screen, Sound, Memory
  1450.  
  1451.  
  1452.    Select S to see this menu.  Sixteen options are listed, along with their
  1453.    present values.   To  change  any  option, first hit the option's letter
  1454.    (A-P), then enter  the  new value.  As you edit an entry you may use the
  1455.  
  1456.  
  1457.  
  1458.    3.5:  <Alt-C> Customizing BOYAN                                       20
  1459.    ________________________________________________________________________
  1460.  
  1461.  
  1462.  
  1463.  
  1464.    BOYAN Line Editor (see section 2.4.5).  You may also press <F1> for help
  1465.    at any time.
  1466.  
  1467.      <A> Normal text color, default = 7.  This number represents  the color
  1468.          of the text coming  to  and from the modem during a communications
  1469.          session.  If  you  have  a  color  monitor and wish to change this
  1470.          value,  enter  a  number between 1 and 127 from the color chart at
  1471.          the right.  Press <Enter> after typing the number.  Alternatively,
  1472.          if you have a mouse, you  may  simply  point at the color you want
  1473.          and click the left button.
  1474.  
  1475.      <B> Enhanced text color, default  =  12 (color), 15 (B&W).  When BOYAN
  1476.          needs  to  highlight  text on the communications  screen  for  any
  1477.          reason it will use this color.
  1478.  
  1479.      <C> Menu  and help screen color, default =  113  (color),  112  (B&W).
  1480.          BOYAN's menus and help screens will be displayed in this color.
  1481.  
  1482.      <D>  Menu  header  color, default = 31 (color), 15 (B&W).    Used  for
  1483.          highlighting menu headers and the 1-line mouse menu.
  1484.  
  1485.      <E> Menu highlight bar color, default = 49 (color), 7 (B&W).  Used for
  1486.          highlighting the "selected entry" in the  Dialing  Directory, File
  1487.          Manager, and Redialing Queue.  Also used in mouse menus.
  1488.  
  1489.      <F> Help screen highlight  color,  default  =  116 (color), 126 (B&W).
  1490.          Used for highlighting special text on the help screens as  well as
  1491.          in some menus.
  1492.  
  1493.      <G> Status line color, default = 95 (color), 112 (B&W).
  1494.  
  1495.      <H> Scroll-back color, default = 3 (color), 7 (B&W).  Text  in BOYAN's
  1496.          scroll-back buffer will appear in this color.
  1497.  
  1498.      <I> Macro  display message color, default =  62  (color),  112  (B&W).
  1499.          User-generated menus,  for example, will appear on the text screen
  1500.          in this color.
  1501.  
  1502.      <J> Beeps  &  Bells,  default = ON.   The  value  of  this  item  will
  1503.          determine whether BOYAN's normal sound  effects are on or off each
  1504.          time BOYAN is run.  At  any  given  time while you are using BOYAN
  1505.          you may temporarily toggle the sound on or off  with  the  <Alt-B>
  1506.          command   (section 4.1.3).  This setting  is  independent  of  the
  1507.          alarm level.
  1508.  
  1509.      <K> Alarm  level,  default  = 7.  BOYAN uses its alarms  to  signal  a
  1510.          successful redialer connection, the end  of a file transfer, and a
  1511.          modem disconnect.   Change  the  volume  level  of  the  alarms by
  1512.          setting  this  field  between 1 (low buzzing) and 10 (loud, shrill
  1513.  
  1514.  
  1515.  
  1516.    3.5:  <Alt-C> Customizing BOYAN                                       21
  1517.    ________________________________________________________________________
  1518.  
  1519.  
  1520.  
  1521.  
  1522.          beep).  0 turns the alarm off altogether.    Note  that  the alarm
  1523.          level is independent of the Beeps & Bells setting.
  1524.  
  1525.      <L> Use  dots  in  menus, default = YES.  BOYAN will enhance its menus
  1526.          with small dots if this option is YES.
  1527.  
  1528.      <M>  Use  mouse  if  detected,  default  = YES.  If you have  a  mouse
  1529.          installed but don't want to use it with BOYAN, toggle  this option
  1530.          to NO.
  1531.  
  1532.      <N> Return to Dial Dir if no connect, default  =  NO.    If you dial a
  1533.          number from the dialing directory screen but the  number  is busy,
  1534.          the dialing directory will automatically reappear if  this setting
  1535.          is YES.  If this setting is NO, you will  remain  in terminal mode
  1536.          after an unsuccessful dial attempt.  (Auto-dialing is explained in
  1537.          section 4.2.1.4.)
  1538.  
  1539.      <O> Memory (in K) reserved for DOS shell, default =  133.  BOYAN  uses
  1540.          about 170 K of memory for itself; all remaining memory  is divided
  1541.          between the scroll-back  buffer  (section 4.7.2) and the DOS shell
  1542.          (section 4.6.2).  Larger values for this option will allow  you to
  1543.          run larger programs from within BOYAN.  For example, at  least 133
  1544.          K  is  required  to  run  "TED",  PC  Magazine's editor.    (Other
  1545.          ShareWare editors such as  "QEDIT"  may require less.)  To use the
  1546.          "Zmodem" external protocol, you should  reserve  at  least  115 K.
  1547.          Other external protocols, like "Kermit" and  "Sealink,"  work with
  1548.          as little as 65 K.  Smaller values will increase  the  size of the
  1549.          scroll-back  buffer.    To maximize the size  of  the  scroll-back
  1550.          buffer, you may set this value to 0, but then BOYAN  commands like
  1551.          "Copy a file" will be disabled.  25 K is  the  smallest value that
  1552.          will enable DOS command use from within BOYAN.   Changes  to  this
  1553.          setting do not take effect until the next time you run BOYAN.  You
  1554.          can  override  the  number configured here by running BOYAN with a
  1555.          number on its Command Line, e.g.:  BOYAN 180 .
  1556.  
  1557.      <P> Default logon password.    BOYAN allows you to associate a private
  1558.          password  with each system in your Dialing  Directory.    When  no
  1559.          password is specified  for  a given directory entry, however, this
  1560.          password  will  be  used.  If you use the same  password  for  the
  1561.          majority of systems you call, you may find it convenient  to enter
  1562.          that password here rather than in each directory entry.
  1563.  
  1564.  
  1565.    3.6  Config Area <D> -- Disk and File Setup
  1566.  
  1567.  
  1568.    Press  a  letter from A through P to edit these entries,  all  of  which
  1569.    concern  disk  operations  and file transfers.  Remember, press <F1> for
  1570.    help.
  1571.  
  1572.  
  1573.  
  1574.    3.6:  <Alt-C> Customizing BOYAN                                       22
  1575.    ________________________________________________________________________
  1576.  
  1577.  
  1578.  
  1579.  
  1580.      <A> DOS  command to view a file, default = TYPE.  To view the contents
  1581.          of  a  text  file  during  a communication session, BOYAN sends  a
  1582.          command to DOS consisting of the View file command +  the filename
  1583.          (e.g. TYPE FILENAME.EXT).  If you own another file viewing utility
  1584.          such as Vernon Buerg's LIST program, you may use its name for this
  1585.          option instead.
  1586.  
  1587.      <B> DOS command to  edit a file, default = TED.  When you want to edit
  1588.          a text file, BOYAN sends a  command  to DOS consisting of the Edit
  1589.          file command + the  filename  (e.g. TED FILENAME.EXT).  TED is the
  1590.          "tiny editor" written  by  Tom  Kihlken  for PC Magazine.  If your
  1591.          word processor is capable of  editing standard text files, you may
  1592.          wish to enter its name here.
  1593.  
  1594.      <C> Sort  filenames  in  file manager, default  =  YES.    When  BOYAN
  1595.          displays a disk directory,  the  filenames  will  be automatically
  1596.          alphabetized  if  this  option is YES.  If this setting is NO, the
  1597.          files will be displayed in the normal DIR order.
  1598.  
  1599.      <D> Default FON dialing directory, default  =  BOYAN.FON.    Enter the
  1600.          name of the dialing directory which BOYAN should load at start-up.
  1601.          The filename should end with the .FON suffix.
  1602.  
  1603.      <E> Default  path  for  FON directories.  Enter the complete drive and
  1604.          directory in which BOYAN should  expect to find all .FON directory
  1605.          files.  If no path is  specified  here, BOYAN will assume that the
  1606.          files are in your BOYAN directory.
  1607.  
  1608.      <F> Default path for file uploads.  When you transfer a file from your
  1609.          PC to a remote computer (upload), BOYAN will search this directory
  1610.          for the file.  If it  is  not  found in that directory, BOYAN will
  1611.          also automatically check  the  current DOS directory for the file.
  1612.          You may temporarily change  this  default path at the start of any
  1613.          transfer, but use this option to store your usual choice.
  1614.  
  1615.      <G> Default path for file downloads.  When BOYAN transfers a file from
  1616.          a remote computer to your  PC  (download),  it  will automatically
  1617.          place the file in this drive and subdirectory.  BOYAN will use the
  1618.          current path if  this  field  is  left empty.  You may temporarily
  1619.          change this default  path  at  the  start of any transfer, but use
  1620.          this option to store your usual choice.
  1621.  
  1622.      <H> Path  for  external  protocols.  BOYAN expects  to  find  external
  1623.          protocols such as DSZ.COM (Zmodem)  and  PCKERMIT.EXE  (Kermit) in
  1624.          the drive and subdirectory  specified  here.    If you are running
  1625.          BOYAN  on a two-floppy system, you should set  this  path  to  B:.
  1626.          The BOYAN directory will be used if you leave this setting blank.
  1627.  
  1628.  
  1629.  
  1630.    3.6:  <Alt-C> Customizing BOYAN                                       23
  1631.    ________________________________________________________________________
  1632.  
  1633.  
  1634.  
  1635.  
  1636.      <I> Default path for script files.  When you run a script  file, BOYAN
  1637.          searches  this  drive  and directory for the script.  If it is not
  1638.          found there, then  BOYAN  also  tries  to locate the script in the
  1639.          current DOS directory.   If  you  leave  this setting blank, BOYAN
  1640.          will search the BOYAN directory for the script.
  1641.  
  1642.      <J> Maintain usage log, default = YES if you are using a hard disk, NO
  1643.          if floppy.  If you select YES, BOYAN  will  maintain  a  text file
  1644.          activity log which shows  a  record  of  all BOYAN connections and
  1645.          file transfers (see section 4.5.3).  You can toggle the  usage log
  1646.          on and off during BOYAN's operation with the <Alt-U> command.
  1647.  
  1648.      <K> Default usage log file,  default  =  BOYAN.USE.   Specify here the
  1649.          complete drive, directory,  and  filename  for  BOYAN's  usage log
  1650.          file.
  1651.  
  1652.      <L> Usage  log  line prefix, default = %MO/%DA, %HR:%MI .  This string
  1653.          will be appended before every line  in  the usage file.  Any BOYAN
  1654.          macro variables in the string will be substituted  properly.   For
  1655.          example,  with  the  default  prefix,  the  Usage   Message  macro
  1656.          \UM[Disconnected!] will create  a  usage  log  entry  like "05/28,
  1657.          11:35 Disconnected!".
  1658.  
  1659.      <M> Default log to disk file, default = BOYAN.LOG.   BOYAN  can  auto-
  1660.          matically save all incoming text to a disk  file  (section 4.5.1).
  1661.          Although you can change this name  each  time you log to disk, the
  1662.          default directory and filename should be set here.
  1663.  
  1664.      <N> Default screen dump file, default = SCRNDUMP.TXT.  BOYAN's <Alt-S>
  1665.          command saves a copy of the current screen to a disk file (section
  1666.          4.5.2).  Use this  option  to  specify  the directory and filename
  1667.          BOYAN should use for this file.
  1668.  
  1669.      <O> Scroll-back filename, default = SCRBACK.LOG.  When viewing text in
  1670.          the  scroll-back buffer, you may mark any region  of  text  to  be
  1671.          saved to a disk file (section 4.7.2).  Specify this file's default
  1672.          directory and filename here.
  1673.  
  1674.      <P> Default  phone  list  dump file, default = NUMBERS.TXT.  BOYAN can
  1675.          generate  a  readable  text file listing of  the  phone  directory
  1676.          (section 4.2.1.4).   Specify  this  file's  default  directory and
  1677.          filename here.
  1678.  
  1679.  
  1680.  
  1681.    3.7:  <Alt-C> Customizing BOYAN                                       24
  1682.    ________________________________________________________________________
  1683.  
  1684.  
  1685.  
  1686.  
  1687.    3.7  Config Area <C> -- Communications options
  1688.  
  1689.  
  1690.    Select a letter from A through P to change any of  these  entries.   The
  1691.    defaults for these settings apply to a typical computer  with  a  Hayes-
  1692.    compatible modem.
  1693.  
  1694.      <A> Serial device (port) to use.  Toggle this option  to  Com1,  Com2,
  1695.          Com3, or Com4 to specify the serial port which  BOYAN  should  use
  1696.          when  it  starts  up.  This  can  be  changed  temporarily  during
  1697.          terminal mode with the <Alt-P> Parameter  Change  command (section
  1698.          4.2.3).  Note:  if you are using the Com3 or  Com4  port,  you may
  1699.          need to specify the port  addresses in Configuration Area <E> (see
  1700.          section 3.8).
  1701.  
  1702.      <B> Modem  speed.    BOYAN  will  automatically use the baud rate  you
  1703.          select here  (300, 1200, 2400, 4800, 9600, 19200, 38400, 57,600 or
  1704.          115K) when it starts up,  but this rate can be changed at any time
  1705.          with the <Alt-P> command (section 4.2.3).
  1706.  
  1707.      <C> Parity  setting.    BOYAN will automatically use  the  parity  you
  1708.          select  (None,  Even, Odd) when it starts  up,  but  this  can  be
  1709.          changed  at any time with the  <Alt-P>  command  (section  4.2.3).
  1710.          Most  Bulletin Board Systems will work with  a  setting  of  None,
  1711.          whereas most mainframes, databases,  and  large  services  such as
  1712.          CompuServe require a setting of Even.  BOYAN automatically selects
  1713.          a "word length" of 8 bits for No parity, and 7  bits  for  Even or
  1714.          Odd parity.
  1715.  
  1716.      <D> Modem connect message, default  =  CONNECT.  If your modem gives a
  1717.          message upon making a connection, enter that message  here.   Note
  1718.          that "CONNECT" will cover the extended messages of "CONNECT 1200",
  1719.          "CONNECT 2400", etc.
  1720.  
  1721.      <E>,<F>,<G>,<H> Modem  no  connect   messages,  defaults  =  BUSY,  NO
  1722.          CARRIER, NO DIAL, and VOICE.  When your  modem  sends  any  of the
  1723.          four messages entered  here,  BOYAN will assume that the attempted
  1724.          dialing was unsuccessful.  If your modem has fewer than  four such
  1725.          messages, just leave the extra spaces blank.
  1726.  
  1727.      <I> Modem error message, default = ERROR.  If BOYAN sees  this message
  1728.          it  will  know  that an error in dialing occurred, and it will not
  1729.          attempt to redial this number.
  1730.  
  1731.      <J> Echo  keyboard,  default  = OFF.  If off, BOYAN will send what you
  1732.          type to the modem only; if  on,  BOYAN  will send what you type to
  1733.          both the modem and the screen.  This may  be  toggled  temporarily
  1734.          during communications with the <Alt-E> command (section 4.1.4).
  1735.  
  1736.  
  1737.  
  1738.    3.7:  <Alt-C> Customizing BOYAN                                       25
  1739.    ________________________________________________________________________
  1740.  
  1741.  
  1742.  
  1743.  
  1744.      <K> Add linefeeds, default =  OFF.    BOYAN  will add linefeeds (extra
  1745.          line spacing) to incoming carriage returns if this  option  is on.
  1746.          While using BOYAN you may temporarily toggle linefeeds  on  or off
  1747.          with the <Shift-Tab> command (section 4.1.10).
  1748.  
  1749.      <L> Default file transfer protocol, default = X.  This is  the default
  1750.          protocol BOYAN will offer  when  the  "Prot"  field in the dialing
  1751.          directory entry has been left blank.  BOYAN version 5 supports the
  1752.          following methods  of  file  transfer:    [X]modem,  [C]RC-Xmodem,
  1753.          [R]elaxed-Xmodem, [1]K-Xmodem, [Y]modem, [G]-Ymodem, and  [A]SCII.
  1754.          These  protocols  are  described  in  section 4.4.1.   BOYAN  also
  1755.          supports  up  to  ten  user-defined  external  protocols,  such as
  1756.          [Z]modem and [K]ermit.   Note  that you can still use any protocol
  1757.          at any time, no matter what the default.
  1758.  
  1759.      <M> Check free disk space before DL, default = YES.  When this is YES,
  1760.          BOYAN will  automatically display the number of bytes available on
  1761.          the  drive  before  downloading  a  file  and  while  viewing  the
  1762.          Directory File Manager.   When  this is NO, you must press <Alt-F>
  1763.          in  the  download  menu  or  Y  in  the  Directory File Manager to
  1764.          accomplish the same result.  If you have a  relatively  slow  hard
  1765.          disk with a large amount of  free  space  on it, you can save some
  1766.          time by setting this option to NO.
  1767.  
  1768.      <N> Auto-find  transfer  filename,  default   =   YES.      With  most
  1769.          communications programs, transferring a file requires you to enter
  1770.          the file's name twice:  once  to  the remote computer, and once to
  1771.          your PC.  One of BOYAN's most handy  features  is  its  ability to
  1772.          "lift" a filename right off the screen, saving you the  trouble of
  1773.          typing  it  twice  (section  4.4.3).   Select OFF to disable  this
  1774.          feature.
  1775.  
  1776.      <O> Auto-detect  message  upload  word wrap, default =  NO.    BOYAN's
  1777.          message upload feature allows you to prepare messages offline with
  1778.          your  word processor and then send them  directly  to  the  remote
  1779.          message system.  Since different systems  allow  different maximum
  1780.          lengths for each  line  of the message, uploaded message sometimes
  1781.          look strangely short on the line, or (worse yet) they  overrun the
  1782.          line,  causing word wrap.  When this feature  is  ON,  BOYAN  will
  1783.          automatically detect when the  remote  system  word wraps; if this
  1784.          happens, BOYAN suppresses the next <Return> character.  This works
  1785.          nicely with text messages,  but  may  cause  graphic boxes and the
  1786.          like  to  align  improperly if the message line is too long.  Note
  1787.          that this feature is disabled by default.
  1788.  
  1789.      <P> Auto-downloading,   default  =  ON.    Downloading  with   certain
  1790.          protocols, such as Zmodem,  MPt,  and  Bimodem, will start without
  1791.          your  having  to  touch the keyboard if this option is  ON.    See
  1792.          section 3.12.1 for a full discussion of auto-downloading.
  1793.  
  1794.  
  1795.  
  1796.    3.8:  <Alt-C> Customizing BOYAN                                       26
  1797.    ________________________________________________________________________
  1798.  
  1799.  
  1800.  
  1801.  
  1802.    3.8  Config Area <E> -- Expert Communications Options
  1803.  
  1804.  
  1805.    Select the option to configure by letter (A-P).
  1806.  
  1807.      <A> Inter-character pacing (ms),  default  = 10.  How many thousandths
  1808.          of a second to delay between sending characters in a  macro, ASCII
  1809.          upload, or Message upload.
  1810.  
  1811.      <B> Line  pacing  (ms),  default  =  20.    An  additional  delay,  in
  1812.          thousandths  of a second, after sending a  Carriage  Return  in  a
  1813.          macro, ASCII upload, or Message upload.
  1814.  
  1815.      <C> Use  CTS/RTS  flow  control, default = NO.  Some high-speed modems
  1816.          support so-called "hardware handshaking," or CTS/RTS flow control,
  1817.          in order to prevent buffer overflows.  If your modem can be set to
  1818.          use CTS/RTS handshaking, you should set this option to YES.
  1819.  
  1820.      <D> Use XON/XOFF flow control, default = NO.   Some  high-speed modems
  1821.          and  networks  support "software handshaking,"  or  XON/XOFF  flow
  1822.          control,  in  order  to  prevent  buffer  overflows.   BOYAN  will
  1823.          recognize and use XON/XOFF controls if this option is set  to YES.
  1824.          Note:  CTS/RTS  flow  control  is  preferable and should  be  used
  1825.          instead of this option, if your modem supports it.
  1826.  
  1827.      <E> Drop  DTR  when  closing communications port, default = YES.  When
  1828.          you exit BOYAN or change comm devices, BOYAN will  drop  the  Data
  1829.          Terminal Ready signal if this option is set to YES.    If you wish
  1830.          to exit BOYAN without losing  your  data  connection,  toggle this
  1831.          option to NO.
  1832.  
  1833.      <F> Auto-detect connect speed, default = YES.  When this is YES, BOYAN
  1834.          will automatically set its baud  rate based on the number returned
  1835.          with  the  modem  connect message after dialing.  In effect, using
  1836.          this option allows you  to  specify  your  highest modem speed for
  1837.          every dialing directory entry,  as  long  as  your modem returns a
  1838.          message with its  connect  speed.    If  your  modem  only reports
  1839.          "CONNECT" and not a baud rate like "CONNECT 1200", then you should
  1840.          set  this option to NO.  You should also set this option to NO  if
  1841.          you are using a high-speed modem with a fixed port speed.
  1842.  
  1843.      <G> Modem carrier  detect  mask  bit,  default  =  7.  Many of BOYAN's
  1844.          features depend  on your modem's ability to accurately reflect its
  1845.          carrier  status.    Most  modems  use  bit  7  of the modem status
  1846.          register to indicate the  presence  of a carrier signal.  For some
  1847.          modems,  you  may  have to type a special command or flick a modem
  1848.          dipswitch to get it to  accurately reflect the carrier status (see
  1849.          section 2.3.2).  If BOYAN seems to think you  are  connected  when
  1850.  
  1851.  
  1852.  
  1853.    3.8:  <Alt-C> Customizing BOYAN                                       27
  1854.    ________________________________________________________________________
  1855.  
  1856.  
  1857.  
  1858.  
  1859.          you aren't, or vice-versa, then as a last resort try changing this
  1860.          number to 5, 4, etc.
  1861.  
  1862.      <H> CD reflects true state of modem, default = YES.  If your modem can
  1863.          accurately maintain the  Carrier  Detect  signal  as  described in
  1864.          section  2.3.2,  then  this option should be YES.  When you try to
  1865.          dial  a number while your modem is  already  reporting  a  carrier
  1866.          signal,  BOYAN will ask you to confirm that  you  really  want  to
  1867.          "dial despite carrier."  If your modem always  forces  the carrier
  1868.          signal high, you will  want  to  eliminate  this prompt by setting
  1869.          this option to NO.
  1870.  
  1871.      <I> Time to wait for connect, default  =  45.  After dialing a number,
  1872.          BOYAN waits this  many  seconds  for  a  carrier  signal,  a modem
  1873.          message, or a keypress.  If the timer expires, BOYAN  assumes that
  1874.          no connection was made.  Note:    many modems have their own timer
  1875.          and will report "NO  CARRIER"  after 30 seconds.  Check your modem
  1876.          manual if you want to modify the modem's internal timer.
  1877.  
  1878.      <J> Time between redials, default =  3.  After an unsuccessful dialing
  1879.          attempt  from  the  queue  redialer,  BOYAN pauses for  this  many
  1880.          seconds before running the "Cycle current dialing"  Auto-macro and
  1881.          then continuing to redial.
  1882.  
  1883.      <K> Script "waitfor" timeout,  default  =  40.    BOYAN's macro/script
  1884.          waitfor commands will wait for  the  number  of  seconds specified
  1885.          here before "timing out"  and  continuing to the next command.  If
  1886.          you  enter  the  maximum   value,   255,   then  BOYAN  will  wait
  1887.          indefinitely for a match.  This  value  can be reset from within a
  1888.          macro or script by the \TO macro.
  1889.  
  1890.      <L> Script keyboard timeout,  default  =  10.   When a script file has
  1891.          control, BOYAN thinks of  itself  as  "unattended" and will accept
  1892.          the  default  response  to  any  keyboard  prompt--but  only after
  1893.          pausing for this many seconds.   During  that pause, if you are at
  1894.          the  keyboard,  you  may edit the default response using the BOYAN
  1895.          Line Editor.  This setting also controls how long BOYAN  will ring
  1896.          the redialing queue connect alarm  before  proceeding  to  run the
  1897.          associated auto-logon script.  This value can be reset from within
  1898.          a macro or script by the \KO macro.
  1899.  
  1900.      <M> Com3 port address (hexadecimal), default = $3E8.  Com3  is  not  a
  1901.          standard IBM serial device,  so  different  add-in devices may use
  1902.          different "addresses" in  memory  for the communications port.  On
  1903.          the  IBM-PC and AT, $3E8 is most often used; on the IBM PS/2, Com3
  1904.          is addressed at $3220.  You will get unpredictable results  if you
  1905.          try  to  use  Com3 when this value is not set properly.  Addresses
  1906.          should be entered in hexadecimal notation, with or  without  a "$"
  1907.          prefix.
  1908.  
  1909.  
  1910.  
  1911.    3.8:  <Alt-C> Customizing BOYAN                                       28
  1912.    ________________________________________________________________________
  1913.  
  1914.  
  1915.  
  1916.  
  1917.      <N> Com3 interrupt (IRQ 2..5), default = 4.  Serial ports can  use IRQ
  1918.          2, 3, 4 or 5 for  their  "interrupt requests."  Your Com3 device's
  1919.          documentation should specify which it uses.
  1920.  
  1921.      <O> Com4  port  address  (hexadecimal),  default  =  $2E8.    See  the
  1922.          description of configuration option <M> above.  On  the  IBM PS/2,
  1923.          Com4 is addressed at $3228.  Attempting to use Com4 if  this value
  1924.          is set incorrectly will cause  unpredictable  results.   Addresses
  1925.          should be entered in hexadecimal notation, with or  without  a "$"
  1926.          prefix.
  1927.  
  1928.      <P> Com4 interrupt (IRQ  2..5),  default  =  3.    Your  Com4 device's
  1929.          documentation should specify which IRQ line it uses.
  1930.  
  1931.  
  1932.    3.9  Config Area <M> -- Macros
  1933.  
  1934.  
  1935.    A BOYAN "macro" is a line of  text,  up  to  80  characters  long, which
  1936.    contains  a  sequence  of  instructions  for  BOYAN  to follow.    BOYAN
  1937.    recognizes  well  over  300  different  two-letter macro commands.    By
  1938.    learning BOYAN's Macro Programming Language,  you  can  customize almost
  1939.    every  aspect  of  BOYAN's operation.  The Macro Programming Language is
  1940.    described in detail in chapter 5.
  1941.  
  1942.    3.9.1  Basic Macro Commands
  1943.  
  1944.  
  1945.    Short of mastering the  Macro  Programming  Language,  you can still use
  1946.    macros in their most basic form.  The simplest macro is just a string of
  1947.    text, such as John Doe.   When  that  macro is executed, BOYAN sends the
  1948.    string John Doe  over  the  modem,  just  as  if  you had typed the name
  1949.    manually.   If  you  assigned  the macro John Doe to a function key (say
  1950.    <F2>), then at any later time you would only need to press <F2>, and the
  1951.    string John Doe would be typed out.
  1952.  
  1953.    The eight characters  " ^ { ~ ` \ %  @  have special meanings in a BOYAN
  1954.    macro.   When any of those characters are used in a macro, they are  not
  1955.    sent directly to the modem, but instead have the following effects:
  1956.  
  1957.       1.  The quotation mark " is used before any of those eight characters
  1958.           if you really do wish that  character  to be sent directly to the
  1959.           modem.  For example, to send a quotation mark, include "" in your
  1960.           macro.  To send a backslash, use "\.
  1961.  
  1962.       2.  The caret ^ is used to send control characters.  For  example, if
  1963.           the string  ^J is found in a macro, BOYAN  will  send a control-J
  1964.           character.  ^[ sends an Escape character.
  1965.  
  1966.  
  1967.  
  1968.    3.9.1:  <Alt-C> Customizing BOYAN                                     29
  1969.    ________________________________________________________________________
  1970.  
  1971.  
  1972.  
  1973.  
  1974.       3.  The left curly brace { is used to send  the  <Return>  character.
  1975.           It is equivalent to the macro command ^M , or typing <Enter> from
  1976.           terminal mode.
  1977.  
  1978.       4.  If the tilde ~ is found in a  macro,  BOYAN  will  pause one-half
  1979.           second before continuing.
  1980.  
  1981.       5.  The backquote ` is ignored unless preceded by  a  quotation mark.
  1982.           It may be used for spacing out BOYAN commands.
  1983.  
  1984.       6.  The backslash \  is  the BOYAN Macro Programming Language command
  1985.           prefix.   BOYAN's macro commands generally take  the  form  of  a
  1986.           backslash followed  by two letters.  These commands, described in
  1987.           chapter  5,  make  it  possible  for  you  to automate  all  your
  1988.           communication needs.
  1989.  
  1990.       7.  The  percent  sign  %  and   at-symbol  @  are  the  BOYAN  Macro
  1991.           Programming Language variable prefixes.    BOYAN  macro variables
  1992.           take the form of  either  a percent sign or at-symbol followed by
  1993.           two letters.  Chapter 5 also covers these variables.
  1994.  
  1995.    Spaces in a macro are ignored when they fall between two  macro commands
  1996.    or at the end of the macro.   However,  they  are  sent literally to the
  1997.    modem when found in the  middle  of  a  string,  such as in Jane Doe.  A
  1998.    macro to send only a single space would be a  quotation  mark " followed
  1999.    by a space.
  2000.  
  2001.    Two backslashes in a row \\  signify  a macro comment; BOYAN ignores any
  2002.    text following those  two  characters.    Many of the 120 built-in BOYAN
  2003.    macros end with comments which help explain their functions.
  2004.  
  2005.    3.9.2  The 120 BOYAN Macros
  2006.  
  2007.    In  Configuration  Area  <M>, there are 120 macros available for config-
  2008.    uration.  Here is a summary of how all 120 macros are arranged:
  2009.  
  2010.     - 1-5:  Dialing commands; Reset  modem parameters; Hang up modem; Cycle
  2011.       current dialing.  These are explained in the next section.
  2012.  
  2013.     - 6-14:    BOYAN  Auto-macros.    The nine Auto-macros help make  BOYAN
  2014.       uniquely  powerful  among  communications  programs.    These  macros
  2015.       automatically "come to life"  at  specific  times during normal BOYAN
  2016.       operations.  They are also explained in the next section.
  2017.  
  2018.     - 15-110:  Keystroke macros.  Every function key and BOYAN  command key
  2019.       is assigned its  own  macro,  which  you can examine and customize to
  2020.       your liking.  This is demonstrated below in section 3.9.4.
  2021.  
  2022.  
  2023.  
  2024.    3.9.2:  <Alt-C> Customizing BOYAN                                     30
  2025.    ________________________________________________________________________
  2026.  
  2027.  
  2028.  
  2029.  
  2030.     - 111-120:  Shortcut macros.  These correspond to the symbols above the
  2031.       top row of digits on the keyboard -- the ! @ # $ % ^ & * ( ) symbols.
  2032.       They  are  shortcuts  because  they  may be invoked within any  other
  2033.       macro, by using the macro command \ plus the symbol.  In other words,
  2034.       if  you  assign macro 113 (#) to the string John Doe,  then  you  can
  2035.       embed the \# string within any  other  macro  to send "John Doe".  If
  2036.       you assign macro 117 (&) to  print  the disk directory and download a
  2037.       file, then including \& within any  macro  or script will do the same
  2038.       thing.  A common  use  for  shortcut  macros is long-distance dialing
  2039.       prefixes.  This is explained in section 4.2.1.5.
  2040.  
  2041.    From the Macro menu, you  may  select  a  group  of 10 macros to view by
  2042.    choosing the appropriate letter from the menu (A-L).  Alternatively, you
  2043.    may go directly into editing a particular macro, by  typing  its  number
  2044.    and pressing <Enter>, or in the  case  of a keystroke or Shortcut macro,
  2045.    just  hitting the appropriate keystroke.  You may  use  the  BOYAN  Line
  2046.    Editor commands while  editing  a  macro  (see  section  2.4.5).   While
  2047.    viewing a screen of BOYAN macros, you may use the <PgUp> and <PgDn> keys
  2048.    to move from screen to screen.
  2049.  
  2050.    3.9.3  Modem Dialing & Auto-macros
  2051.  
  2052.    BOYAN  Macros  1-14  perform basic modem commands  and  other  functions
  2053.    important to BOYAN's routine performance.  Press A to go from  the Macro
  2054.    menu to a list of BOYAN macros 1-10, or B to list macros 11-20.  To edit
  2055.    any  of these, type its number and press <Enter>.  Do not worry if  some
  2056.    of the Auto-macros appear very complex; you can use BOYAN  fully without
  2057.    changing any of them!  For examples of how to customize the Auto-macros,
  2058.    please refer to section 5.3.2.
  2059.  
  2060.      1.  Dialing  command,  default  =  ATDT @SF {.  When you tell BOYAN to
  2061.          dial a number from your Dialing Directory, it does  so  with  this
  2062.          macro, substituting the system's phone number for @SF.
  2063.  
  2064.      2.  Alternate dialing command.   You may enter another dialing command
  2065.          here, using the same format as macro #1.  A system in your Dialing
  2066.          Directory will be dialed using  this alternate macro if you append
  2067.          the letter "a" to its phone number.
  2068.  
  2069.      3.  Reset modem  parameters,  default = \CA-[{~].  BOYAN automatically
  2070.          runs this macro after  you  change the modem's baud rate or parity
  2071.          settings with the <Alt-P> command.   The default uses BOYAN's \CA-
  2072.          macro  command to act as follows:  if there is no carrier (you are
  2073.          not on-line at the time when  you  press <Alt-P>), then it sends a
  2074.          Carriage Return to the modem and pauses for one-half second.
  2075.  
  2076.      4.    Hang   up   modem,   default   =    \DT-    \RE5[\CA+[~]]   \DT+
  2077.          \CA+[+++~~~~ATH{].  When you press <Alt-H> to hang  up  the modem,
  2078.          BOYAN invokes this  macro.    The  default  macro  drops  the Data
  2079.  
  2080.  
  2081.  
  2082.    3.9.3:  <Alt-C> Customizing BOYAN                                     31
  2083.    ________________________________________________________________________
  2084.  
  2085.  
  2086.  
  2087.  
  2088.          Terminal Ready signal (\DT-), then pauses until either the carrier
  2089.          signal drops or 2.5 seconds have elapsed.    After  restoring  the
  2090.          DTR signal (\DT+), if BOYAN still detects a  carrier  signal, then
  2091.          it sends the normal Hayes-compatible hangup command:  +++ , pause,
  2092.          ATH <Enter>.
  2093.  
  2094.      5.   Cycle current dialing, default = { .  Often a modem will take  15
  2095.          or 20 seconds to determine that the number it has dialed  is busy.
  2096.          If  you  have  a modem speaker,  BOYAN  lets  you  manually  cycle
  2097.          (cancel) the dialing attempt as soon as you hear the  busy signal.
  2098.          This macro is  sent  at  that  time.   The default macro sends the
  2099.          <Return> character, which cycles most Hayes-compatible modems.  On
  2100.          Everfax modems, this macro should be changed to A/.
  2101.  
  2102.      6.  After connecting, default = \UM[%SN (%MS baud): %SF].   This Auto-
  2103.          macro  runs  immediately  after  you  connect to any system.   The
  2104.          default simply adds a Usage Message to the BOYAN.USE file with the
  2105.          system name, modem speed, and system phone number.
  2106.  
  2107.      7.  After disconnecting, default = \AL3[0] \RC \SK- \UM[| Disconnected
  2108.          after %SL].  This Auto-macro runs immediately after you disconnect
  2109.          from any system.    The  default  sounds a brief alarm, resets the
  2110.          text  color,  turns  off   the   Secondary   Keyset,  and  adds  a
  2111.          "Disconnected" message to the BOYAN.USE usage file.
  2112.  
  2113.      8.  After a file transfer, default  =  \AL1[1] \UM[| %TI].  BOYAN runs
  2114.          this Auto-macro after any file  transfer.  The default rings alarm
  2115.          #1 for one second, and then adds a message to the usage log with a
  2116.          line of file transfer information (%TI).
  2117.  
  2118.      9.   BOYAN  start-up  macro,  default   =   \DM[   Welcome   to  BOYAN
  2119.          Communications 5! ]  \CA-[ATX4S0=0{] .  This Auto-macro runs right
  2120.          after  you enter BOYAN.  By default, Macro  #9  first  displays  a
  2121.          welcome message,  and then initializes the modem with the ATX4S0=0
  2122.          <Return>  command only if there is  no  carrier  signal  detected.
  2123.          This  initialization string tells most Hayes-compatible modems  to
  2124.          give extended dialing result  codes  and  to  not answer the phone
  2125.          when it rings.  If  your modem requires a different initialization
  2126.          string,  it  should  be inserted in this macro inside the \CA-[..]
  2127.          command.
  2128.  
  2129.      10.  BOYAN conclude macro, default = \LD-.  This Auto-macro runs right
  2130.          after  you  tell  BOYAN you want to exit the program.  The default
  2131.          closes any open log file before exiting.
  2132.  
  2133.      11.  Mouse click macro, default =  \HE.   Here you can specify exactly
  2134.          what BOYAN will do if you click the  left  mouse  button  while in
  2135.          terminal mode.  By default this brings up the Command Menu.
  2136.  
  2137.  
  2138.  
  2139.    3.9.3:  <Alt-C> Customizing BOYAN                                     32
  2140.    ________________________________________________________________________
  2141.  
  2142.  
  2143.  
  2144.  
  2145.      12.  Auto-download, default =  \AT+[\DL-[]].    When the remote system
  2146.          sends a message to begin auto-downloading with a certain protocol,
  2147.          BOYAN makes that protocol the  default protocol and then runs this
  2148.          Auto-macro.    The  default macro checks that no script is running
  2149.          (\AT+[..]) before  starting  the  download  immediately.    If you
  2150.          prefer to  confirm  the  auto-download  before  it  starts, simply
  2151.          remove the minus sign from the \DL command.   Please  see  section
  2152.          3.12.1 for a full discussion of auto-downloading.
  2153.  
  2154.      13.    Printer  init macro, default  =  \PM[====  BOYAN  Printer  Log,
  2155.          %MO/%DA/%YR at %HR:%MI ===={].   When  you  select  the Initialize
  2156.          option  from  BOYAN's  Printer Menu, this Auto-macro  runs.    The
  2157.          default prints a header message with  the  date and time.  You may
  2158.          add control codes to the macro, e.g., \PM[^XB]  to  send <control-
  2159.          X>,<B> to the printer.
  2160.  
  2161.      14.   Log  file init macro, default =  \LM[====  BOYAN  Log  to  Disk,
  2162.          %MO/%DA/%YR at %HR:%MI ====].   This  Auto-macro  runs immediately
  2163.          after you open a log  file.    The  default  macro  logs  a header
  2164.          message with the current date and time.
  2165.  
  2166.    3.9.4  <Alt-K> Function Key Customization
  2167.  
  2168.    Each cursor key, <Alt-letter> or  <Alt-number>  keystroke,  and function
  2169.    key is assigned to a BOYAN  macro,  numbers  15 through 110.  By editing
  2170.    those macros, each  can  be  customized  to perform any BOYAN action you
  2171.    want.    For example, suppose you wanted  to  customize  BOYAN  so  that
  2172.    pressing  the <F9> function key would have the  effect  of  typing  your
  2173.    name, pressing  <Enter>, pausing, then typing your password and pressing
  2174.    <Enter> again.  It's as easy as 1-2-3:
  2175.  
  2176.       1.  Call up BOYAN's Configure Macro menu by pressing  <Alt-K>.   Then
  2177.           select the <F9> keystroke  macro  for  editing by simply pressing
  2178.           <F9>.
  2179.  
  2180.       2.  Type in  the  macro:    John Doe{~%PW{ .  The { symbol causes the
  2181.           macro to send a Carriage Return.  The  tilde  ~  inserts  a half-
  2182.           second  pause.  Finally, %PW is a  Macro  Variable  which  always
  2183.           contains the current system's password.    But  before  you press
  2184.           <Enter> to save your macro...
  2185.  
  2186.       3.  Press <UpArrow> to enter a description of your  macro,  e.g. Type
  2187.           name & password.  Then  press <Enter>.  BOYAN automatically saves
  2188.           your new macro to disk.
  2189.  
  2190.    To escape back to BOYAN's terminal mode, press <Esc> twice.  Now, if you
  2191.    press <Alt-F1>, you will notice that the function key  menu  lists  "F9:
  2192.    Type name & password" as an option.    The  next  time  you  are online,
  2193.    pressing <F9> will send your name and password automatically!
  2194.  
  2195.  
  2196.  
  2197.    3.9.4:  <Alt-C> Customizing BOYAN                                     33
  2198.    ________________________________________________________________________
  2199.  
  2200.  
  2201.  
  2202.  
  2203.    A  function  key  macro  can  do more than just send text:  it  can  run
  2204.    another program, enter a new terminal emulation, download a file, change
  2205.    disk directories, select  a  new  modem  speed,  or  automate  an entire
  2206.    communications  session.   Furthermore, by  editing  the  pre-programmed
  2207.    BOYAN command macros, you can customize BOYAN's keyboard layout entirely
  2208.    to your own taste.  Chapter 5 covers BOYAN's Macro Programming Language.
  2209.  
  2210.  
  2211.    3.10  Config Area <A> -- BOYAN Action Modules
  2212.  
  2213.  
  2214.    BOYAN Action Modules (BAMs)  are  stored in the BOYAN directory as files
  2215.    with  the  ".BAM"  suffix.  The Action Modules included with BOYAN 5 are
  2216.    ADM-3A, ANSI-BBS, CONTROL, DOORWAY,  DUMBTERM,  GOSSIP,  HOST, IBM-3101,
  2217.    TVI-925, VT-52, and VT-100.  These  are  described in section 4.3.  When
  2218.    additional Action Modules are  written  for BOYAN 5, the .BAM files will
  2219.    be  available  for  download from the BOYAN Support BBS, and they may be
  2220.    easily integrated into BOYAN 5.
  2221.  
  2222.    Configuration Area <A> has  two  functions:  to maintain BOYAN's list of
  2223.    available Action  Modules; and to perform special configuration for each
  2224.    individual module.
  2225.  
  2226.    3.10.1  BAM Selection
  2227.  
  2228.    The  top  four  items on the configuration screen are the same no matter
  2229.    what BAM is currently active:
  2230.  
  2231.      <A> Add action module to list.  When new BAM  files  become  available
  2232.          for use with BOYAN, you tell  BOYAN  5 to recognize them by adding
  2233.          their  name to the list.  You must choose a single letter or digit
  2234.          to represent the new action module in menus.
  2235.  
  2236.      <B> Remove action module from list.  If there are .BAM files which you
  2237.          never use, you may save a bit of time and  disk  space by deleting
  2238.          those files from the disk and then removing their names  from this
  2239.          list.
  2240.  
  2241.      <C> Change  current  action  module.  This option allows you to select
  2242.          the current action module,  just  as if you were choosing from the
  2243.          <Alt-A> menu.    The  lower  half  of  the screen will reflect the
  2244.          special configuration options for the newly-selected BAM.
  2245.  
  2246.      <D> Change default action module (default = ANSI-BBS).  BOYAN will use
  2247.          the BAM you select here automatically at start-up.    For example,
  2248.          if  you want BOYAN to be in Gossip Mode at start-up, touch G after
  2249.          selecting option D.  Note:   the  DOORWAY and HOST modules may not
  2250.          be used as the default BAM.
  2251.  
  2252.  
  2253.  
  2254.    3.10.2:  <Alt-C> Customizing BOYAN                                    34
  2255.    ________________________________________________________________________
  2256.  
  2257.  
  2258.  
  2259.  
  2260.    3.10.2  Terminal Emulation Configuration
  2261.  
  2262.    The  lower  half  of the screen in Config Area <A> shows special options
  2263.    available for the currently-selected BAM.  If you use option C to select
  2264.    another BAM, a new set of special options will appear there.
  2265.  
  2266.    Each terminal emulation BAM (ADM-3A, ANSI-BBS, IBM-3101, TVI-925, VT-52,
  2267.    and VT-100) offers a selection of options from the list below:
  2268.  
  2269.     - Edit secondary keyset.  The  secondary keyset changes the meanings of
  2270.       the function and cursor keys while <Scroll Lock> is locked.  Pressing
  2271.       E brings up a menu in which all of the special keyboard functions can
  2272.       be customized to the particular BAM.  Configuring these keys works in
  2273.       exactly  the  same  way  as  configuring BOYAN's primary  keyset,  as
  2274.       described above in section 3.9.4.  For a complete description  of how
  2275.       to redefine  the terminal emulation keysets, please refer to Appendix
  2276.       D.  Press <Esc> to return to Config Area <A>.
  2277.  
  2278.     - Swap Backspace/Del  keys,  default  =  NO.    When this option is NO,
  2279.       pressing <backspace> sends the standard BS character (ASCII 8), while
  2280.       pressing <Del> sends the DEL character,  ASCII  127.  If you set this
  2281.       option to YES,  the  two  keys  will be switched, so that <backspace>
  2282.       sends DEL and <Del> sends BS.  This  is  useful  on  mainframes which
  2283.       require the DEL character to delete backwards.
  2284.  
  2285.     - Wrap  long  lines, default = YES.  Lines of text with  more  than  80
  2286.       characters on them are wrapped to the next  line  if  this  option is
  2287.       YES, or truncated at the 80th column if this option is NO.
  2288.  
  2289.     - Backspace at column 1, default = NO.  (TVI-925 emulation only)   When
  2290.       this  is ON, a backspace received when the cursor is on column 1 will
  2291.       cause the cursor  to  "back  up"  to  column 80 of the previous line.
  2292.       When OFF, such a backspace has no effect.
  2293.  
  2294.    3.10.3  Host Mode Configuration
  2295.  
  2296.    The BOYAN Host  Mode  uses  both  the  HOST.BSC script file and the HOST
  2297.    Action Module.  The Action Module provides five configurable options:
  2298.  
  2299.      <E> Edit host user database.  Up  to  70  host users may be entered in
  2300.          this   sub-menu.      Each   entry    should    have    the   form
  2301.          Firstname Lastname;password;# where #  is that person's user level
  2302.          (0,1,  or  2).   After the user level, you may  also  add  another
  2303.          semicolon followed by any text.  The following is an example entry
  2304.          in the Host user database:
  2305.  
  2306.               Justin Boyan;ibm-pc;2; hasn't called since August
  2307.  
  2308.  
  2309.  
  2310.    3.10.3:  <Alt-C> Customizing BOYAN                                    35
  2311.    ________________________________________________________________________
  2312.  
  2313.  
  2314.  
  2315.  
  2316.          The HOST script automatically adds  new users to this database and
  2317.          assigns  them a user level of 0.  Technical note:  for purposes of
  2318.          the  \TV  and  \TM  macro  commands,  the  host user  database  is
  2319.          considered a "secondary keyset," where each user entry corresponds
  2320.          to a keyset macro numbered 41 through 110.
  2321.  
  2322.      <F> Host message directory, default = HOST.  The host  will  use  this
  2323.          directory for  storing user-written public messages as well as the
  2324.          file of private comments to the operator.
  2325.  
  2326.      <G> Host files directory, default  =  HOST\FILES.    The host will use
  2327.          this directory for file transfers.  This should not be the same as
  2328.          the  BOYAN  home  directory, so that  level  1  callers  will  not
  2329.          download the host database file with the passwords in it!
  2330.  
  2331.      <H> Number of phone  rings,  default  =  1.   The host will answer the
  2332.          phone after seeing this many "RING" messages from the modem.
  2333.  
  2334.      <I> Connection is by modem, default = YES.  If you are  establishing a
  2335.          direct link between two computers, and wish the host to bypass its
  2336.          normal procedure of waiting  for  the  phone  to ring, then change
  2337.          this option to NO.
  2338.  
  2339.      <J> Local test mode, default = OFF.  When local test  mode  is ON, all
  2340.          text which is normally sent over the modem is  displayed  on  your
  2341.          screen  instead.  In this way, you can test the host mode from the
  2342.          keyboard exactly as if you were operating it remotely.
  2343.  
  2344.  
  2345.    3.11  Config Area <T> -- Translation/filter table
  2346.  
  2347.  
  2348.    The ASCII character  translation  and  filter  table is used if you want
  2349.    BOYAN automatically to change or remove incoming characters.  Directions
  2350.    for using the translation table are on the screen.  Pressing  <F1> gives
  2351.    you instant access to  an  ASCII reference chart, which assigns a number
  2352.    between 0 and 255 to each letter and symbol.
  2353.  
  2354.    Example 1:  If the square-root symbol (char #251) appears erratically on
  2355.    your screen during a bad line connection, you could  have  BOYAN  simply
  2356.    filter it out.  Type F 251 <Enter>.
  2357.  
  2358.    Example 2:  You want the ASCII "DEL" character (#127) to  be interpreted
  2359.    as a backspace (#8) when it is received.  Type T 127 <Enter> 8 <Enter>.
  2360.  
  2361.    Example 3:  After connecting to  a  mainframe, your screen fills up with
  2362.    graphics symbols and foreign  letters.   One way to correct this problem
  2363.    is to use a modem parity setting of Even instead of  None  (this  can be
  2364.    changed in the dialing directory).  Another solution is to select "Strip
  2365.  
  2366.  
  2367.  
  2368.    3.11:  <Alt-C> Customizing BOYAN                                      36
  2369.    ________________________________________________________________________
  2370.  
  2371.  
  2372.  
  2373.  
  2374.    8th bit" in the translate/filter table.  This option converts  all ASCII
  2375.    characters with codes greater than  128  to  regular  non-graphics ASCII
  2376.    characters.
  2377.  
  2378.    The "D" option from the translate/filter table allows you to  tell BOYAN
  2379.    whether or not to obey the translate table by default, that  is, whether
  2380.    the translate  table  should  be  on or off when BOYAN starts.  During a
  2381.    communication session you may turn the translation table on  or  off  at
  2382.    any time by pressing <Alt-T>.
  2383.  
  2384.  
  2385.    3.12  Config Area <X> -- External File Transfer Protocols
  2386.  
  2387.  
  2388.    BOYAN provides built-in support  for  the  Xmodem,  Relaxed-Xmodem, CRC-
  2389.    Xmodem,  1K-Xmodem,  ASCII,  Ymodem,  and  G-Ymodem   methods   of  file
  2390.    transmission.   However, BOYAN can also support  up  to  ten  additional
  2391.    protocols by calling external  programs.    BOYAN comes preconfigured to
  2392.    support  Kermit  (via  PCKERMIT),  Zmodem  and  Ymodem-batch  (via DSZ),
  2393.    Compuserve Quick-B (via OZBEXT), Sealink,  Megalink,  MPt,  and Bimodem.
  2394.    (Please note:   these  external protocols are copyrighted software, with
  2395.    ShareWare license  agreements  independent  of  that  of  BOYAN Communi-
  2396.    cations.)  Furthermore,  any  additional protocol may be configured into
  2397.    BOYAN.  BOYAN's procedure for using external protocols is as follows:
  2398.  
  2399.       1.  Check that the  external  program exists in the External Protocol
  2400.           directory (specified in Config Area <D>).
  2401.  
  2402.       2.  Set the  current  DOS  drive  and  directory  to be the upload or
  2403.           download directory.
  2404.  
  2405.       3.  Execute a user-defined macro which shells to the external program
  2406.           with all necessary parameters.
  2407.  
  2408.       4.  When  the  transfer  is  complete,  change back to  the  previous
  2409.           default drive and directory,  and  return  to  the "Communication
  2410.           ready" screen.
  2411.  
  2412.    BOYAN  needs to know seven pieces of  information  about  each  external
  2413.    protocol  you  wish  to configure.  To help explain, suppose you want to
  2414.    add the fictitious "Vmodem" protocol,  which is supported by an external
  2415.    program  named  VMODEM.EXE.    Vmodem  transfers  are  initiated by  the
  2416.    following DOS commands:
  2417.  
  2418.         Upload:   VMODEM -speed #### -send FILENAME.EXT
  2419.         Download: VMODEM -speed #### -receive FILENAME.EXT
  2420.  
  2421.  
  2422.  
  2423.    3.12:  <Alt-C> Customizing BOYAN                                      37
  2424.    ________________________________________________________________________
  2425.  
  2426.  
  2427.  
  2428.  
  2429.    Here is how you would fill in the information BOYAN needs:
  2430.  
  2431.     - A protocol  name  of  up  to twelve letters: Vmodem.  This is how the
  2432.       protocol will be  identified  in  the  protocol menu and in the usage
  2433.       log.
  2434.  
  2435.     - A menu selection letter (or digit): V.  This letter  will  be used to
  2436.       select  the  protocol  from the protocol menus and in macro commands.
  2437.       If  you choose X, R, C, 1, Y, G, A, or M,  then  the  internal  BOYAN
  2438.       protocol corresponding to that letter will be overridden.
  2439.  
  2440.     - The name of the  external  file which is responsible for handling the
  2441.       transfer: VMODEM.EXE.  BOYAN makes sure that this file is present (in
  2442.       the external protocol  directory)  before allowing you to select this
  2443.       protocol.
  2444.  
  2445.     - Batch  protocol:  NO.    Protocols   more   sophisticated   than  our
  2446.       hypothetical  Vmodem  receive  download  filename(s) from the sending
  2447.       program, in which case this option can be set to YES.  Note, however,
  2448.       that you must select NO if you want  BOYAN  to  record  file transfer
  2449.       information in the usage log; when YES is selected, BOYAN has  no way
  2450.       of knowing what file(s) have been downloaded.
  2451.  
  2452.     - Auto-download string: can be left blank.  (See section 3.12.1 below.)
  2453.  
  2454.     - Upload  macro:  \DC-[%P:VMODEM -speed %MS -send %TF].  Most  external
  2455.       file-transfer programs require parameters after the filename  to tell
  2456.       them the modem  device (port 1, 2, 3, or 4), the modem speed, and the
  2457.       name of the file to transfer.    Use the format \DC-[%P:progname .. ]
  2458.       for each upload  macro.    Handy  Macro Variables for an upload macro
  2459.       include:
  2460.  
  2461.       %P:                 the name of the external protocol directory
  2462.  
  2463.       %TF                 The transfer filename
  2464.  
  2465.       %MD                 Modem Device number (1, 2, 3, or 4)
  2466.  
  2467.       %MS                 Modem Speed (300, 1200, ..., 38400)
  2468.  
  2469.       %MP                 Modem Parity (N, E, or O)
  2470.  
  2471.       %MA                 Modem port address in hexadecimal
  2472.  
  2473.       %MN                 Modem interrupt IRQ line (2, 3, 4, or 5)
  2474.  
  2475.     - Download macro: \DC-[%P:VMODEM -speed %MS -receive %TF].
  2476.  
  2477.  
  2478.  
  2479.    3.12.1:  <Alt-C> Customizing BOYAN                                    38
  2480.    ________________________________________________________________________
  2481.  
  2482.  
  2483.  
  2484.  
  2485.    Refer  to  the predefined macros and to  the  help  screen  for  further
  2486.    information.  Although protocol configuration  can be complex, it is yet
  2487.    another of the features that makes BOYAN uniquely flexible.
  2488.  
  2489.    3.12.1  Auto-downloading
  2490.  
  2491.    Suppose  you  have  reached  a  BBS  and have told it that you  want  to
  2492.    download a file using Zmodem.   It  usually  gives you a message such as
  2493.    "Sending FOO.ZIP--start the download  on  your end now."  Then it starts
  2494.    the  actual  Zmodem  file  transfer,  which always begins with the  four
  2495.    characters <Ctrl-X>,B,0,0.
  2496.  
  2497.    Those particular four characters rarely  occur  in  a  sequence together
  2498.    except at  the  start  of  a  Zmodem  transfer.  What BOYAN can do is to
  2499.    always "keep a lookout" for that four-character sequence.  When  it sees
  2500.    it, it starts the  Zmodem  download  right  away--without your having to
  2501.    lift a finger.  This is the essence of auto-downloading.
  2502.  
  2503.    In fact, BOYAN can keep a lookout for up to ten  different auto-download
  2504.    sequences, one for each  external  protocol  specified  in Configuration
  2505.    Area  <X>.  Each sequence may contain a  maximum  of  seven  characters.
  2506.    Control  characters  should  be entered as a caret ^ plus the letter; to
  2507.    specify a caret itself as  part  of  the  sequence,  enter "^.    If the
  2508.    desired auto-download  sequence is more than seven characters long, just
  2509.    choose any seven-character subsequence:  the important criterion is that
  2510.    the sequence be unlikely to occur except when starting a download.
  2511.  
  2512.    What actually happens when BOYAN recognizes one of the ten auto-download
  2513.    sequences  is this:  it sets the default protocol (%DP) to the letter of
  2514.    the protocol detected, and then executes BOYAN Auto-macro #12 (described
  2515.    in section 3.9.3).  Auto-downloading  may be disabled by toggling option
  2516.    P in Config Area <C>, or with BOYAN Macro Command \AU-.
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.                                   Chapter 4
  2533.  
  2534.                           BOYAN Command Capabilities
  2535.  
  2536.  
  2537.    When  BOYAN is in terminal mode, it lets  you  communicate  through  the
  2538.    modem without obstruction.  However,  at all times BOYAN's many commands
  2539.    are one keystroke away.  This chapter describes in detail how to use the
  2540.    BOYAN commands.
  2541.  
  2542.  
  2543.    4.1  Basic Commands
  2544.  
  2545.  
  2546.    4.1.1  <F1> Help Menu
  2547.  
  2548.    While  in terminal mode, pressing <F1> brings up  a  menu  of  available
  2549.    BOYAN commands.  The menu is split into five categories:   Modem, Action
  2550.    Module, Utility, Dos & File, and Toggles.   Note that the current ON/OFF
  2551.    status for each of the toggles is displayed.
  2552.  
  2553.    To execute a command, type the  keystroke  to the right of the command's
  2554.    description.  To view the help  screen  index  and gain access to all of
  2555.    BOYAN's  help screens, press <F1> again (see section  2.4.3).    If  you
  2556.    prefer  to  return  to terminal mode without executing a command, simply
  2557.    press <Esc>.
  2558.  
  2559.    Mouse  users:  on this menu and all others, you may make a selection  by
  2560.    pointing to a command and clicking the left mouse button.
  2561.  
  2562.    4.1.2  <Alt-F1> Function Key Menu
  2563.  
  2564.    Pressing  <Alt-F1> brings up a menu of 40 function keys.  You may select
  2565.    commands from this menu just as from the <F1> main help menu.
  2566.  
  2567.    What is special about this menu is that each of  the  40 descriptions is
  2568.    user-definable.   To change the description of  a  function  key,  press
  2569.    <Alt-K>, the function key itself, and then <UpArrow>.  Refer  to section
  2570.    5.3 for many examples of user-defined keys.
  2571.  
  2572.  
  2573.  
  2574.    4.1.3:  BOYAN Command Capabilities                                    40
  2575.    ________________________________________________________________________
  2576.  
  2577.  
  2578.  
  2579.  
  2580.    4.1.3  <Alt-B> Beeps & Bells Toggle
  2581.  
  2582.    The Beeps  and  Bells  setting  is a toggle, taking the value ON or OFF.
  2583.    When BOYAN starts,  it  will  set  this toggle to its configured default
  2584.    (section  3.5).  Note that the alarms will still sound even if the Beeps
  2585.    and  Bells  toggle  is OFF.   To  silence  BOYAN  completely,  you  must
  2586.    configure the Alarm Volume to 0, as well as turn Beeps and Bells OFF.
  2587.  
  2588.    4.1.4  <Alt-E> Echo Keyboard Toggle
  2589.  
  2590.    When the Echo Keyboard Toggle is switched OFF, every character  you type
  2591.    is sent to the modem only.  When this toggle is  ON,  each  character is
  2592.    sent to  both  the  modem  and  the  local screen.  If you see double of
  2593.    everything you type, or if you can't  see  what  you  type  at  all, try
  2594.    pressing <Alt-E>.  You may set BOYAN's initial value for this  toggle in
  2595.    section 3.7.
  2596.  
  2597.    4.1.5  <Alt-G> 43/50-Line Mode
  2598.  
  2599.    Normally,  when  this  toggle is OFF, BOYAN displays 25 lines of text on
  2600.    the screen  whether  your  adapter  is  a  Monochrome, CGA, EGA, or VGA.
  2601.    However, if you have an EGA or VGA adapter, you  may  "grab" more screen
  2602.    lines  by pressing <Alt-G>.  An EGA screen will then display 43 lines; a
  2603.    VGA, 50 lines.  Note that BOYAN menus and help  screens  will still only
  2604.    use the top 25 lines, except for the Scroll-back buffer,  which utilizes
  2605.    the whole screen.  Press <Alt-G> again to return to a 25-line screen.
  2606.  
  2607.    4.1.6  <Alt-O> Restore Default Text Color
  2608.  
  2609.    If a system sends an ANSI Graphics or other terminal emulation code that
  2610.    changes the text color, you can change it back to its configured default
  2611.    by pressing <Alt-O>.
  2612.  
  2613.    4.1.7  <Alt-T> Translation Table Toggle
  2614.  
  2615.    When this toggle is selected ON, BOYAN will translate or filter incoming
  2616.    ASCII characters as  specified  in the translation table (section 3.11).
  2617.    When OFF, all characters are displayed without modification.
  2618.  
  2619.    4.1.8  <Alt-X> Exit BOYAN
  2620.  
  2621.    When you have finished a BOYAN session and wish to quit,  press <Alt-X>.
  2622.    Press Y to verify the exit, or N to stay in BOYAN.   If  you  exit while
  2623.    still connected through the modem, you  will  be given a message to that
  2624.    effect.  The  modem port will be closed, and the DTR signal will be held
  2625.    or dropped depending on your configuration (see section 3.8).
  2626.  
  2627.  
  2628.  
  2629.    4.1.9:  BOYAN Command Capabilities                                    41
  2630.    ________________________________________________________________________
  2631.  
  2632.  
  2633.  
  2634.  
  2635.    Be careful not  to  confuse  this  command  with the <Alt-J> Jump to Dos
  2636.    command (section 4.6.2), which lets  you enter DOS temporarily but keeps
  2637.    BOYAN in memory.
  2638.  
  2639.    4.1.9  <Alt-Z> Zap (Clear) Screen
  2640.  
  2641.    To clear the current screen of text, press  <Alt-Z>.    The  status line
  2642.    will remain intact.
  2643.  
  2644.    4.1.10  <Shift-Tab> Add Linefeeds Toggle
  2645.  
  2646.    When this option is ON, BOYAN adds linefeeds to  all  incoming  carriage
  2647.    returns; when OFF, all carriage returns are processed  as  is.    If all
  2648.    text is double spaced, or if all text is overprinted  on  the same line,
  2649.    try pressing <Shift-Tab>.  You may set BOYAN's initial  value  for  this
  2650.    toggle in section 3.7.
  2651.  
  2652.  
  2653.    4.2  Modem Commands
  2654.  
  2655.  
  2656.    4.2.1  <Alt-D> Dial a System
  2657.  
  2658.    BOYAN makes it simple to make connections through an auto-dialing modem,
  2659.    either  with a phone number entered manually or a number from one of its
  2660.    200-entry  dialing directories.  Before using  the  <Alt-D>  command  to
  2661.    dial, be sure that your modem's dialing commands are properly configured
  2662.    (section 3.9.3).  When you press <Alt-D>, the dialing directory appears,
  2663.    and you are prompted to "Enter a phone number or a  command."    You may
  2664.    now either 1) enter  a  full  phone  number to dial manually; 2) enter a
  2665.    code number between 1 and 200  to  dial  a system from the directory; or
  2666.    3) press any of BOYAN's dialing option keys.
  2667.  
  2668.    4.2.1.1  Manual Dialing
  2669.  
  2670.  
  2671.    Automatic  dialing from the BOYAN directory  has  many  advantages  over
  2672.    manual dialing:   BOYAN  automatically  sets  the  parameters, maintains
  2673.    information  about  the  system,  and  lets you abbreviate with a  short
  2674.    dialing  code  number.    Nevertheless,  manual  dialing   is  sometimes
  2675.    convenient if you  wish  to  just  try a system once without permanently
  2676.    changing your directory.    To  dial  manually,  first  use  the <Alt-P>
  2677.    command to set the modem's parameters  to  the proper values.  Then dial
  2678.    by typing <Alt-D>, the system's full number, and <Enter>.   What happens
  2679.    next is explained below in section 4.2.1.3.
  2680.  
  2681.  
  2682.  
  2683.    4.2.1.2:  BOYAN Command Capabilities                                  42
  2684.    ________________________________________________________________________
  2685.  
  2686.  
  2687.  
  2688.  
  2689.    4.2.1.2  Code Number Dialing
  2690.  
  2691.    To  dial  a  system  which  has  already  been  entered into the Dialing
  2692.    Directory, select the entry either by using the cursor keys or by simply
  2693.    typing its code  number  (1-200);  then  press <Enter>.  If the system's
  2694.    baud  rate and parity are different from  the  current  settings,  BOYAN
  2695.    automatically adjusts the  settings  and runs the Reset Modem Parameters
  2696.    macro (#3).  Then BOYAN dials the number.
  2697.  
  2698.    4.2.1.3  After Dialing
  2699.  
  2700.  
  2701.    After BOYAN has  dialed  a  number  in  either of the two ways described
  2702.    above, it waits for 45 seconds (to change this, see section 3.8) for the
  2703.    modem to return a message.  BOYAN chooses one of several paths depending
  2704.    on what happens in those 45 seconds:
  2705.  
  2706.       1.  If you press the <Esc> key, BOYAN's dialing procedure is aborted,
  2707.           and control is immediately returned to you in terminal mode.  The
  2708.           modem may still be trying to establish a connection.
  2709.  
  2710.       2.  If the modem returns an error message, BOYAN cycles (cancels) the
  2711.           current  dialing  attempt   with  the  Cycle  Dialing  Auto-macro
  2712.           (section 3.9.3) and returns you to terminal mode.
  2713.  
  2714.       3.  If  you  press  <space>, or the 45-second  timer  expires,  BOYAN
  2715.           cycles the current  dialing  attempt with the Cycle Dialing Auto-
  2716.           macro; adds or updates  the  number  in  the redialing queue; and
  2717.           then returns you either to the dialing directory  or  to terminal
  2718.           mode,  depending  on  how you have configured the "Return to Dial
  2719.           Dir if no connect" option (section 3.5).
  2720.  
  2721.       4.  If  the modem returns one of  the  no-connect  messages  (section
  2722.           3.7):  BOYAN adds  or  updates the number in the redialing queue,
  2723.           and then returns  you  to  either  the  dialing  directory  or to
  2724.           terminal mode as you have configured.
  2725.  
  2726.       5.  If BOYAN detects carrier  or  sees the connect message:  you have
  2727.           connected!   If the auto-speed-detect feature is on, BOYAN checks
  2728.           the connect message and  sets  the  baud  rate appropriately.  It
  2729.           then starts an elapsed-time-of-call timer.    If  the  number was
  2730.           dialed by a directory code,  then  the  appropriate  BOYAN Action
  2731.           Module is invoked, and  the  linked  logon  script file will take
  2732.           control if one was specified.  BOYAN also displays the  last date
  2733.           you connected to this system.  Finally, if this number was in the
  2734.           redialing queue (section 4.2.4),  it  is  removed from the queue.
  2735.           BOYAN then returns control to you.
  2736.  
  2737.  
  2738.  
  2739.    4.2.1.4:  BOYAN Command Capabilities                                  43
  2740.    ________________________________________________________________________
  2741.  
  2742.  
  2743.  
  2744.  
  2745.    BOYAN's ability to dynamically add and delete numbers from the redialing
  2746.    queue is very powerful.  Instructions for redialing from the  queue with
  2747.    the <Alt-Q> command are in section 4.2.4.
  2748.  
  2749.    4.2.1.4  Dialing Directory Options
  2750.  
  2751.  
  2752.    BOYAN can maintain multiple dialing  directories of 200 entries each for
  2753.    your most  frequently-dialed systems.  The directory display consists of
  2754.    the directory page number, a chart  of  20  of the system entries, and a
  2755.    brief help line.  For each entry, BOYAN displays its name, phone number,
  2756.    BOYAN Action Module letter,  logon  script  file name, default protocol,
  2757.    baud rate, parity setting, and last connect date.
  2758.  
  2759.    BOYAN  also  maintains  a separate .PWD  file  which  stores  a  private
  2760.    password for each entry.  An  entry's  password is visible only when you
  2761.    select  E to edit that entry, but a diamond in the "PW" column indicates
  2762.    that a password has been entered.
  2763.  
  2764.    BOYAN provides many options for maintaining the Dialing Directory; these
  2765.    are  described  below.   If you delete an entry accidentally or make any
  2766.    other mistake while editing the Dialing Directory, you may use  the Undo
  2767.    command to revert to the last-saved  copy  of  the .FON file.  After you
  2768.    exit the directory  (by  dialing  a  number  or  pressing  <Esc>), BOYAN
  2769.    automatically saves all the changes you made, and they can no  longer be
  2770.    undone.
  2771.  
  2772.     - <F1>:  view Help Screen.
  2773.  
  2774.     - <Home>, <End>:  Go to beginning or end of directory.
  2775.  
  2776.     - <UpArrow>, <DownArrow>:  Move the scroll bar up or down.
  2777.  
  2778.     - <PgUp>, <PgDn>:  Move scroll bar by page.
  2779.  
  2780.     - <Enter>:  Dial the entry under the scroll bar.
  2781.  
  2782.     - <space>:  Add the entry under the scroll bar to the  Redialing Queue,
  2783.       or  remove it from the Queue if it is already there.  A small  square
  2784.       next to the entry's code number indicates that the entry is currently
  2785.       in the Queue.
  2786.  
  2787.     - <Esc> or mouse right button:  Return to terminal mode.
  2788.  
  2789.     - mouse left button:
  2790.  
  2791.        * single click:  Set scroll bar at the mouse cursor position.
  2792.  
  2793.        * hold down and drag:  Move scroll bar up or down with mouse.
  2794.  
  2795.  
  2796.  
  2797.    4.2.1.4:  BOYAN Command Capabilities                                  44
  2798.    ________________________________________________________________________
  2799.  
  2800.  
  2801.  
  2802.  
  2803.        * double-click on entry's name or phone number:  Dial the entry.
  2804.  
  2805.        * double-click  on entry's code number (at  left  edge  of  screen):
  2806.          Add/remove entry from Redialing Queue, like <space>.
  2807.  
  2808.        * single click on menu  line:   Select option from choices listed on
  2809.          line 24 of the screen.
  2810.  
  2811.     - <Alt+letter>:  Move the  scroll  bar directly to the next entry whose
  2812.       system name starts with  that  letter.  For example, press <Alt-E> to
  2813.       move the scroll bar down to the next entry starting with "E".
  2814.  
  2815.     - Alphabetize:  Sort a range of entries by name, phone number,  or last
  2816.       connect date.  BOYAN offers three ways to sort:
  2817.  
  2818.       Name                Increasing order by System Name.
  2819.  
  2820.       Phone               Increasing  order by  phone  number,  with  short
  2821.                           (local) numbers preceding longer numbers.
  2822.  
  2823.       Date                Decreasing order by last connect date.  Note that
  2824.                           BOYAN version 5  Dialing Directories do store the
  2825.                           year as well as  the  month  and  day of the last
  2826.                           connection.
  2827.  
  2828.       Finally,  specify  the first and last entries  in  the  range  to  be
  2829.       sorted.  The sorting process may take several seconds to complete.
  2830.  
  2831.     - Baud  rate  fill:   To change the baud rate setting for a consecutive
  2832.       range of entries all at once,  press  B.   Specify the range to fill;
  2833.       then select the desired baud  rate by pressing <space> repeatedly and
  2834.       then <Enter>; or, if you prefer, select by digit:  [3]=300, [1]=1200,
  2835.       [2]=2400,  [4]=4800,  [9]=9600,  [0]=19200,  [8]=38400,  [7]57600  or
  2836.       [5]115K.
  2837.  
  2838.     - Clone directory:  This command creates a new .FON file whose contents
  2839.       are exactly  the  same  as  the  current  Dialing Directory.  Use the
  2840.       NewFON option to create a new, empty .FON directory.
  2841.  
  2842.     - <Del>:  Delete the single entry under the scroll bar.    The entry is
  2843.       saved to BOYAN's "clipboard."  Later, you can use <Ctrl-P> to "paste"
  2844.       the entry back into the directory or even into  a  different  Dialing
  2845.       Directory.    Combined  with the <Ins> command, this provides a handy
  2846.       way to move an entry wherever you want in the directory.
  2847.  
  2848.     - Delete range:  Specify the first and last  entries  in  the  range to
  2849.       delete.  Those entries and all entries between them will  be deleted,
  2850.       and the rest of the directory  entries  will shift up to their place.
  2851.       (Also  see  the  <Ctrl-X> "Exchange ranges"  command.)    To  undo  a
  2852.       mistaken Delete, press U immediately!
  2853.  
  2854.  
  2855.  
  2856.    4.2.1.4:  BOYAN Command Capabilities                                  45
  2857.    ________________________________________________________________________
  2858.  
  2859.  
  2860.  
  2861.  
  2862.     - Edit selected entry: use the cursor keys to highlight  an  entry  for
  2863.       editing,  then press E..  You will prompted to edit each field of the
  2864.       entry.  While entering/editing an entry, all of  BOYAN's  normal Line
  2865.       Editor commands (section 2.4.5) are valid, as well as:
  2866.  
  2867.       <Enter>             continue forward to the next field;
  2868.  
  2869.       <UpArrow>           return to the previous field;
  2870.  
  2871.       <PgDn>              accept the entry; and
  2872.  
  2873.       <Esc>               abort the changes you have made.
  2874.  
  2875.       The fields for each entry are:
  2876.  
  2877.       System Name         The system's name, for your own reference.
  2878.  
  2879.       Phone Number        The full phone number.  Special  commands  may be
  2880.                           included within the number:
  2881.  
  2882.                            - If  you  wish  to  use a long-distance dialing
  2883.                              prefix,  you  may  insert  a Shortcut macro as
  2884.                              described in section 4.2.1.5.
  2885.  
  2886.                            - To make the modem pause during dialing, insert
  2887.                              a comma wherever you want  a  pause  to occur,
  2888.                              e.g.:  9,,555-1212.
  2889.  
  2890.                            - To  select  BOYAN's  alternate dialing command
  2891.                              for this system, append the  letter  a  to the
  2892.                              end  of  the  phone  number, e.g.:  730-2917a.
  2893.                              After you press <Enter>, the a will  appear as
  2894.                              the  character  Âª.    The  letter  "a"  is not
  2895.                              actually sent to  the  modem  as  part  of the
  2896.                              phone number; rather,  it signals BOYAN to use
  2897.                              Macro #2 instead of Macro #1 when dialing this
  2898.                              system.    To  learn  how to configure dialing
  2899.                              command macros, see section 3.9.3.
  2900.  
  2901.       BAM                 (BOYAN Action Module)  A single letter  to assign
  2902.                           a special BAM to this entry, or just  a  space to
  2903.                           use  the  default  BAM.  If you wish to specify a
  2904.                           special BAM, choose from the list on  Help Screen
  2905.                           F (press  <F1>  to  view).    Action  Modules are
  2906.                           described in section 4.3.
  2907.  
  2908.       Script              The  name  of an auto-logon  script  file,  which
  2909.                           BOYAN will automatically run whenever you connect
  2910.                           to this system.  (BOYAN can  "learn"  such script
  2911.  
  2912.  
  2913.  
  2914.    4.2.1.4:  BOYAN Command Capabilities                                  46
  2915.    ________________________________________________________________________
  2916.  
  2917.  
  2918.  
  2919.  
  2920.                           files automatically; refer to section 4.7.3.)  If
  2921.                           you have  not  created  a  logon  script  for the
  2922.                           entry, you should simply leave the "Script" field
  2923.                           blank by pressing <Enter>.
  2924.  
  2925.       Prot (Protocol)     A single letter to choose a default file transfer
  2926.                           protocol to be used on  this  system,  or  just a
  2927.                           space to not select a  special  default.   Choose
  2928.                           from [X]=Xmodem, [A]=ASCII, [Z]=Zmodem, etc. (see
  2929.                           section 4.4.1 for the complete list).   Note that
  2930.                           your selection here is just a  default,  and does
  2931.                           not prevent you from  using  other  file transfer
  2932.                           protocols when connected to this system.
  2933.  
  2934.       Comm (Baud Rate)    You must select a modem  speed  to  be  used when
  2935.                           dialing  this  system.   Press <space> repeatedly
  2936.                           until the desired baud rate appears;  or,  if you
  2937.                           prefer,  select by  digit:    [3]=300,  [1]=1200,
  2938.                           [2]=2400,    [4]=4800,    [9]=9600,    [0]=19200,
  2939.                           [8]=38400, [7]=57600, or  [5]115K.
  2940.  
  2941.       Comm (Parity)       Select a parity setting to be  used  when dialing
  2942.                           this system:    [N]=None,  [E]=Even,  or [O]=Odd.
  2943.                           [N]one   is  standard  on  most  Bulletin   Board
  2944.                           Systems,  while  [E]ven  is usually preferred for
  2945.                           connecting to  mainframes  and  services  such as
  2946.                           CompuServe.
  2947.  
  2948.       PW (Password)       When you reach this field, the "Password:" prompt
  2949.                           will appear.  Type in the personal  password that
  2950.                           you  use  with  this  system.    After  you press
  2951.                           <Enter>, only a small diamond will appear  in the
  2952.                           PW column to indicate that the password is tucked
  2953.                           away there.  Passwords are stored  in  a separate
  2954.                           .PWD file,  so your .FON file may still be shared
  2955.                           freely.  While online, you  can  have  BOYAN type
  2956.                           out this password by pressing <F3>.  If you leave
  2957.                           the PW field blank, then <F3> will  refer instead
  2958.                           to the default password  entered  in  Config Area
  2959.                           <S>.
  2960.  
  2961.     - File to disk:  This creates  a  nicely-formatted disk file of a range
  2962.       of your Dialing Directory.  The text file formed will be suitable for
  2963.       later  printing, uploading, or viewing.  BOYAN  will  prompt  you  to
  2964.       enter the file's name, with NUMBERS.TXT as the default (section 3.6).
  2965.  
  2966.     - Grab phone # from terminal screen:  Another BOYAN  exclusive!    When
  2967.       you're  online  and  you  see  a  message  like  "Try  Ed's   BBS  at
  2968.       (301)-854-3076", there's no need to find  a  slip of paper and a pen,
  2969.  
  2970.  
  2971.  
  2972.    4.2.1.4:  BOYAN Command Capabilities                                  47
  2973.    ________________________________________________________________________
  2974.  
  2975.  
  2976.  
  2977.  
  2978.       copy  down  the  number, and then type it in to the Dialing Directory
  2979.       manually.    Instead,  simply move the scroll bar to a blank entry in
  2980.       the directory and type G.   BOYAN  will scan the terminal screen from
  2981.       bottom  to top, "grab" the first valid phone  number  it  finds,  and
  2982.       insert it  into  the  phone  number field.  If there is more than one
  2983.       valid phone number on the terminal screen, you may press G repeatedly
  2984.       to cycle through all of them.
  2985.  
  2986.     - <Ins>  or  Insert:   This command inserts a single blank entry at the
  2987.       position of the scroll bar.
  2988.  
  2989.     - Locate:  Scan the dialing directory  for  an entry.  At the "LOCATE:"
  2990.       prompt, type in a part of the desired entry and  press  <Enter>.  You
  2991.       can  locate  any part of an entry's name, phone number, etc.    If  a
  2992.       match  is  found,  it  is  highlighted  on  the  screen.  To continue
  2993.       scanning  the  directory  for  further  matches,  press  L again  and
  2994.       <Enter>.  Also see the <Alt+letter> command, described above.
  2995.  
  2996.     - NewFON:  Change to a different FON directory,  or  create  a  new FON
  2997.       directory.  Using  multiple  phone directories gives you a convenient
  2998.       way  to  organize  your phone lists.  For example, you might create a
  2999.       VOICE.FON directory for storing regular  voice  phone  numbers,  or a
  3000.       special LONGDIST.FON directory just for  long-distance  numbers.   At
  3001.       the  "New  .FON  file:" prompt, type a name of up to eight characters
  3002.       (it is unnecessary to include the .FON filename suffix).    If  BOYAN
  3003.       finds a .FON file of that name, that .FON file will  be  loaded.   If
  3004.       BOYAN cannot find a file with the name  you  specified,  you  will be
  3005.       asked if you  mean  to  create  a  new .FON directory with that name.
  3006.       Press "Y" to verify, and an empty phone directory will be created.
  3007.  
  3008.     - Print:  Print a  nicely-formatted  range of the directory.  Enter the
  3009.       code numbers of the first and last entries  in  the  range  to print.
  3010.       You are given  the  opportunity  to  set up the printer using BOYAN's
  3011.       printer interface (section 4.5.4) before printing begins.
  3012.  
  3013.     - <Ctrl-P>:  Paste the clipboard entry back into the dialing directory.
  3014.       The clipboard stores the last entry deleted with the <Del> command.
  3015.  
  3016.     - Queue:  Enter the Redialing Queue.   A  handy  trick  is  to  use the
  3017.       cursor keys and <space> to mark entries for queue redialing, and then
  3018.       hit  Q  to  invoke  the  Queue.  Note that the Q key returns  to  the
  3019.       Dialing Directory from the Redialing Queue as well, so you can  use Q
  3020.       to switch back and forth.
  3021.  
  3022.     - Save:  Force the Dialing Directory  to  be saved.  You won't normally
  3023.       need to use this command, since BOYAN saves your changes to  the .FON
  3024.       file automatically when you exit  the  Dialing  Directory  (either by
  3025.       pressing <Esc>, invoking the redialing Queue, or dialing a number).
  3026.  
  3027.  
  3028.  
  3029.    4.2.1.4:  BOYAN Command Capabilities                                  48
  3030.    ________________________________________________________________________
  3031.  
  3032.  
  3033.  
  3034.  
  3035.     - Undo:  Revert to the last-saved  copy  of  the current FON file.  You
  3036.       must  use this command before exiting  from  the  Dialing  Directory,
  3037.       because BOYAN automatically saves all modifications then.
  3038.  
  3039.     - eXchange:  Press X to exchange  any  two entries.  This is convenient
  3040.       when, after  alphabetizing  with  the  A  command,  you wish to put a
  3041.       favorite system  at  the  top  of the list.   Simply specify the code
  3042.       numbers of the two entries to swap.
  3043.  
  3044.     - <Ctrl-X> block exchange:   This  command  allows  you to exchange two
  3045.       whole  ranges  of  the dialing directory; for example, you could swap
  3046.       entries  1-10  with  entries 11-20.  You are prompted for the top and
  3047.       bottom of the first range and the  top  of  the  second  range.   The
  3048.       ranges you specify should not overlap.
  3049.  
  3050.    Each dialing directory is automatically  saved to disk after any changes
  3051.    you make to it.  Be sure that you do not remove the disk containing your
  3052.    .FON directory at any time while using BOYAN.
  3053.  
  3054.    4.2.1.5  Long-Distance Dialing Prefixes
  3055.  
  3056.  
  3057.    Phone numbers are  processed  as  macros;  that is, when BOYAN dials, it
  3058.    treats the phone number as a macro.  Thus any macro command (see section
  3059.    3.9  and  chapter  5) can be embedded within a phone  number.    BOYAN's
  3060.    Shortcut  macro commands are an example.  If  you  use  a  long-distance
  3061.    service with codes too long  to  fit  in  the  directory,  this  is your
  3062.    solution.
  3063.  
  3064.    Suppose you belong to a long-distance service which requires you to dial
  3065.    a local number (say 765-4321), pause, and enter a seven-digit  code (say
  3066.    1234567) before dialing the long-distance  number  itself.    In BOYAN's
  3067.    Config   Area   <M>,   assign  the  \*  Shortcut  (#18)  to  the  string
  3068.    765-4321,,1234567  .   Then, wherever the  backslash  and  asterisk  are
  3069.    found embedded in a phone number, the above string will  be substituted.
  3070.    For example, a directory  entry  with  the  phone number  \*919-682-4225
  3071.    will automatically use your long-distance  service  when  it  is dialed.
  3072.    All other macro commands are valid within phone numbers, as well.
  3073.  
  3074.    4.2.1.6  Uniform Dialing Prefixes
  3075.  
  3076.    Another common situation is when the same BOYAN phone directory  must be
  3077.    used both at home and at work.  If the work phone  requires  a  9  and a
  3078.    pause  before dialing out (e.g. Centrex), the  most  convenient  way  to
  3079.    implement this is to change the  modem  dialing command itself.  This is
  3080.    done in macro #1 of Config Area <M> (section 3.9.3).
  3081.  
  3082.  
  3083.  
  3084.    4.2.1.6:  BOYAN Command Capabilities                                  49
  3085.    ________________________________________________________________________
  3086.  
  3087.  
  3088.  
  3089.  
  3090.    You can assign a  single  keystroke to modify the dialing command, using
  3091.    the \SM1 macro command (see section 5.2.16).  Suppose you want to set it
  3092.    up so that pressing  the  <F9> key selects Centrex dialing, and pressing
  3093.    the <F10> key selects normal dialing.    To do this, configure macro #79
  3094.    <F9> to be    \SM1[ATDT 9,"@SF{]    and  configure macro #80 <F10> to be
  3095.    \SM1[ATDT"@SF{] .  Having  done  this, you can conveniently switch BOYAN
  3096.    from one dialing command to another with a single keypress.
  3097.  
  3098.    4.2.1.7  Disable Call Waiting
  3099.  
  3100.    If you have call waiting, you  are  familiar with the friendly click you
  3101.    get when another  call  comes  in.    That  click  is not so friendly to
  3102.    modems, however, often  causing  them to lose the connection altogether.
  3103.    Most  phone  companies  now offer you the ability to temporarily disable
  3104.    call waiting by dialing *70 immediately before the number itself.  (On a
  3105.    pulse phone, you dial 1170.)
  3106.  
  3107.    To make BOYAN automatically disable call waiting each time it  dials the
  3108.    modem, change the Dialing Command (macro #1) to:
  3109.  
  3110.         ATDT*70,@SF{
  3111.  
  3112.  
  3113.    If you do not have Touch-Tone service, the Dialing Command would be:
  3114.  
  3115.         ATDP1170,@SF{
  3116.  
  3117.  
  3118.    4.2.2  <Alt-H> Hang Up Modem
  3119.  
  3120.    Press <Alt-H> to hang up  the  modem.    The  procedure  BOYAN  uses for
  3121.    hanging up the modem is completely specified in Macro  #4  (see  section
  3122.    3.9.3).   BOYAN will report "Hangup successful" or "Hangup unsuccessful"
  3123.    after trying.
  3124.  
  3125.    4.2.3  <Alt-P> Parameter Change
  3126.  
  3127.    BOYAN version 5 supports 4 serial ports (Com1 through Com4), seven modem
  3128.    speed rates  (300,  1200,  2400,  4800,  9600,  19200, and 38400), and 3
  3129.    parity formats (none, even, and odd).  When BOYAN starts, it  sets these
  3130.    three  variables to the values specified in  Config  Area  <C>  (section
  3131.    3.7).    If  you dial a number from the dialing  directory,  BOYAN  will
  3132.    automatically set the modem parameters; however, if you  wish  to change
  3133.    the parameters manually, you may use the <Alt-P> command.
  3134.  
  3135.    Pressing <Alt-P> brings up a menu of key options, enabling you to change
  3136.    serial port, modem speed, or parity.  When the Status Line  displays the
  3137.    desired parameters, press <Enter> for BOYAN to make the change.   If you
  3138.  
  3139.  
  3140.  
  3141.    4.2.3:  BOYAN Command Capabilities                                    50
  3142.    ________________________________________________________________________
  3143.  
  3144.  
  3145.  
  3146.  
  3147.    press  <Esc>  during  this  process,  BOYAN will return to its  previous
  3148.    parameters.
  3149.  
  3150.    Technical note:  When you select No parity, BOYAN automatically sets the
  3151.    line  format  to 8 data bits, 1 stop bit.  When you select Even  or  Odd
  3152.    parity,  the  line  format  is  7  data bits, 1 stop bit.   Since  these
  3153.    combinations are standard, BOYAN makes the choice automatically to avoid
  3154.    confusion.    Also  note  that  BOYAN runs the "Reset Modem  Parameters"
  3155.    Auto-macro (#3) anytime you change the baud rate or parity with <Alt-P>.
  3156.  
  3157.    4.2.4  <Alt-Q> Queue Redialing
  3158.  
  3159.    BOYAN's  Redialing  Queue  is  one  of  its  easiest and  most  powerful
  3160.    features.  The queue will repeatedly  dial  from a list of numbers until
  3161.    one connects.  Systems which you have dialed with  the  <Alt-D>  command
  3162.    without connecting are automatically  added  to the queue.  If you later
  3163.    dial the system again and do make a connection, BOYAN removes the number
  3164.    from  the queue.  Up to twenty different systems can be in the queue  at
  3165.    one time.
  3166.  
  3167.    Press <Alt-Q> from BOYAN's terminal mode.  The display lists each system
  3168.    which is currently in the queue, along with the number of  attempts made
  3169.    so far, the length of  time  in  the  queue  (Q-time),  and  the current
  3170.    status.
  3171.  
  3172.    BOYAN provides the following commands for you to use in the Queue:
  3173.  
  3174.     - <F1>:  for detailed help with Queue commands.
  3175.  
  3176.     - To add a number to the Queue which is not  in  the dialing directory,
  3177.       simply type the full number manually and press <Enter>.
  3178.  
  3179.     - To  add  a  number to the Queue which is in  the  dialing  directory,
  3180.       simply type the system's code (1-200) and press <Enter>.
  3181.  
  3182.     - <Home>, <End>:  Go to top/bottom of Queue.
  3183.  
  3184.     - <UpArrow>, <DownArrow>:  Move the scroll bar up or down.
  3185.  
  3186.     - <Esc> or mouse right button:  Return to terminal mode.
  3187.  
  3188.     - <space> or <Enter>:  begin redialing.  Starting with the number under
  3189.       the  scroll bar, BOYAN will dial each number  in  turn,  waiting  for
  3190.       modem messages  just as after dialing with <Alt-D> (section 4.2.1.3).
  3191.       After  dialing the last number in the Queue, it returns to the top to
  3192.       run through the list again.   BOYAN  pauses for 3 seconds after every
  3193.       unsuccessful redial (to change this, see section 3.8).    During this
  3194.       pause, pressing <Esc> will  stop  redialing  and  return to the Queue
  3195.       display,  pressing  <space>  will manually cycle BOYAN  to  the  next
  3196.  
  3197.  
  3198.  
  3199.    4.2.4:  BOYAN Command Capabilities                                    51
  3200.    ________________________________________________________________________
  3201.  
  3202.  
  3203.  
  3204.  
  3205.       number in  the  Queue,  and  pressing  D  will delete the number just
  3206.       dialed from the Queue.
  3207.  
  3208.     - mouse left button:
  3209.  
  3210.        * single click:  Set scroll bar at the mouse cursor position.
  3211.  
  3212.        * hold down and drag:  Move scroll bar up or down with mouse.
  3213.  
  3214.        * double-click on entry's name or  phone number:  Begin redialing at
  3215.          the entry.
  3216.  
  3217.        * single click on menu  line:   Select option from choices listed on
  3218.          line 24 of the screen.
  3219.  
  3220.     - <Alt+letter>:  Move the  scroll  bar directly to the next entry whose
  3221.       system name starts with  that  letter.  For example, press <Alt-E> to
  3222.       move the scroll bar down to the next entry starting with "E".
  3223.  
  3224.     - Clear:    clear  the  entire  queue.    You will have to verify  your
  3225.       decision by pressing Y.
  3226.  
  3227.     - <Del> or Delete:    Delete  the  entry  under the scroll bar from the
  3228.       Queue.  The entry is saved in BOYAN's Queue Clipboard.
  3229.  
  3230.     - <Ctrl-P>  or  Paste:    "Undelete"  the  last  Queue  entry  deleted,
  3231.       inserting  it at the current position of the scroll bar.  Using the D
  3232.       and P keys, you can precisely arrange the order in which  systems are
  3233.       redialed.
  3234.  
  3235.     - Quit to Dialing Directory:  It is often convenient to add  and delete
  3236.       entries from the Queue directly from the Dialing Directory.  While in
  3237.       the directory,  you  may  mark  and  unmark  entries for the Queue by
  3238.       either pressing <space> or, if you have a  mouse,  double-clicking on
  3239.       the entry's code  number.    A  small  square next to the code number
  3240.       indicates  an entry that is currently in the Queue.  Press Q again to
  3241.       return to the Queue Redialer.
  3242.  
  3243.    When BOYAN detects a connection with  one  of the systems it has dialed,
  3244.    the  redialing  screen  will disappear and a "ringing" alarm will sound.
  3245.    Press  any key to stop the alarm.  If the connected system has an  auto-
  3246.    logon script specified in  the  dialing  directory,  the alarm will stop
  3247.    automatically after 10 seconds  (the  script  keyboard  timeout, section
  3248.    3.8) so the script file can  begin  processing.  The connected system is
  3249.    automatically  deleted  from  the queue, so after you have finished your
  3250.    session, you may press <Alt-Q><space> to redial the remaining systems.
  3251.  
  3252.  
  3253.  
  3254.    4.2.5:  BOYAN Command Capabilities                                    52
  3255.    ________________________________________________________________________
  3256.  
  3257.  
  3258.  
  3259.  
  3260.    BOYAN's Macro Language  provides  powerful  tools  for  manipulating the
  3261.    Queue;  for instance, the ability to add and  delete  systems  from  the
  3262.    Queue by name.  Please see section 5.2.9 for details.
  3263.  
  3264.    4.2.5  <Ctrl-End> Send Modem Break Signal
  3265.  
  3266.    Some  mainframe  systems  recognize  a  special signal called  a  "modem
  3267.    break."  Press <Ctrl-End> to send this signal.  This command also purges
  3268.    BOYAN's buffer of incoming text.
  3269.  
  3270.    4.2.6  <Del> Send DEL character
  3271.  
  3272.    Some  mainframes  expect  the DEL character (ASCII code 127) rather than
  3273.    the normal backspace character (control-H) for backspacing.  To generate
  3274.    this character, press <Del>.
  3275.  
  3276.    If you need to use this character frequently, you may wish to "swap" the
  3277.    backspace and <Del>  keys  as  described  in  section 3.10.2.  If you do
  3278.    this, the backspace key will send ASCII code 127, and the <Del> key will
  3279.    send a normal control-H character.
  3280.  
  3281.  
  3282.    4.3  BOYAN Action Modules
  3283.  
  3284.  
  3285.    At  all times during communications, both what you  type  and  what  the
  3286.    remote  system  sends  back  are  processed according to a BOYAN  Action
  3287.    Module.    Terminal  emulations, gossip mode,  and  host  mode  are  all
  3288.    examples of BOYAN Action Modules.  There is exactly  one  Action  Module
  3289.    active  at all times.  The name of the currently active Action Module is
  3290.    displayed on the main command menu,  which  you  can view at any time by
  3291.    pressing <F1>.
  3292.  
  3293.    4.3.1  <Alt-A> Activate new Action Module
  3294.  
  3295.    Pressing <Alt-A> brings up  a  menu of all the available Action Modules.
  3296.    To select a module, touch the  appropriate  letter or digit, e.g., G for
  3297.    Gossip.   Press <Esc> to return to  the  communications  screen  without
  3298.    changing the current action module.
  3299.  
  3300.    4.3.2  <Alt-Equals> Previous Action Module
  3301.  
  3302.    This  key automatically activates the Action Module  which  was  in  use
  3303.    prior to the current BAM.
  3304.  
  3305.  
  3306.  
  3307.    4.3.3:  BOYAN Command Capabilities                                    53
  3308.    ________________________________________________________________________
  3309.  
  3310.  
  3311.  
  3312.  
  3313.    4.3.3  <Scroll-Lock> Switch Between BOYAN/Terminal Keysets
  3314.  
  3315.    During normal BOYAN operations, all of the function keys and cursor keys
  3316.    are assigned to  BOYAN  commands and user-definable macros; for example,
  3317.    the <UpArrow> key normally invokes BOYAN's scroll-back buffer.  However,
  3318.    when BOYAN is emulating a terminal  such  as VT-100, it is convenient to
  3319.    have your keyboard's  <UpArrow>  simulate the real VT-100 <UpArrow> key.
  3320.    Therefore,   BOYAN's  terminal  emulations  come  with  "secondary"   or
  3321.    "terminal" keysets.  To  switch  between  BOYAN's  normal keyset and the
  3322.    terminal keyset, press <Scroll-Lock>.   While  <Scroll-Lock>  is locked,
  3323.                                                 2 
  3324.    the secondary keyset is active, and a small     indicator appears in the
  3325.    middle  of  the  status line.   (On  certain  Tandy  computers  with  no
  3326.    <Scroll-Lock> key, use <Alt-NumLock> instead.)
  3327.  
  3328.    Both the primary and secondary keysets are completely customizable.  See
  3329.    section 3.9 and Appendix D.
  3330.  
  3331.    4.3.4  Action Module Descriptions
  3332.  
  3333.    4.3.4.1  ADM-3A, IBM-3101, TVI-925, and VT-52 Emulations
  3334.  
  3335.    BOYAN  emulates  all  the  screen-handling  operations  of  these common
  3336.    terminals.   In addition, each provides its own user-definable secondary
  3337.    keyset  which mimics the terminal's function and  cursor  keys.    While
  3338.    <Scroll-Lock> is locked,  the  <Alt-1>, <Alt-2>, etc. keys correspond to
  3339.    the terminal's function  keys,  and your cursor keys correspond directly
  3340.    to the terminal's cursor keys.  Please see section  3.10.2  for  details
  3341.    about terminal configuration options.
  3342.  
  3343.    4.3.4.2  ANSI-BBS Emulation
  3344.  
  3345.    The ANSI-BBS module is useful  for connecting to Bulletin Board Systems.
  3346.    Many  BBS programs send special "ANSI"  sequences  to  display  colorful
  3347.    welcome  screens, etc., which BOYAN will  handle  appropriately  if  the
  3348.    ANSI-BBS Action Module is  selected.   When <Scroll Lock> is locked, the
  3349.    cursor keys send special control  sequences--great  for  the full-screen
  3350.    message editors offered by some BBS's.  Technical note:  BOYAN  does not
  3351.    require that you install the DOS ANSI.SYS driver in  memory;  the  codes
  3352.    are handled internally.
  3353.  
  3354.    4.3.4.3  CONTROL Action Module
  3355.  
  3356.    The CONTROL module is  a  convenient tool that makes all hidden "control
  3357.    characters" visible.  ASCII characters 0 through 31  are  represented as
  3358.    ^00, ^01, ^02, .. ^31. Two exceptions are ASCII 13, which is represented
  3359.                                                        j
  3360.    as a {, and ASCII 10, which is  represented  as  a   .    Note  that any
  3361.  
  3362.  
  3363.  
  3364.    4.3.4.4:  BOYAN Command Capabilities                                  54
  3365.    ________________________________________________________________________
  3366.  
  3367.  
  3368.  
  3369.  
  3370.    translation or  filtering done by your Translation Table (section 4.1.7)
  3371.    occurs before the control characters are displayed.
  3372.  
  3373.    4.3.4.4  DOORWAY Module
  3374.  
  3375.    The DOORWAY module does two things:  first, it  removes  BOYAN's  Status
  3376.    Line from the screen altogether; and second, it sends any key  you press
  3377.    (including "extended" key codes such as function keys) directly over the
  3378.    modem.  All BOYAN command keys except for  <Alt-Equals>  are unavailable
  3379.    during  DOORWAY mode.  The <Alt-Equals> key  retains  its  normal  BOYAN
  3380.    function of returning you to the previously-selected Action Module, from
  3381.    which normal BOYAN commands will be accessible.
  3382.  
  3383.    4.3.4.5  DUMBTERM (Dumb Terminal)
  3384.  
  3385.    This BAM  makes  BOYAN  act  as a "dumb terminal."  No special codes are
  3386.    processed;  all  incoming  characters  from  the  modem  except  control
  3387.    characters are displayed on the screen as-is.
  3388.  
  3389.    4.3.4.6  GOSSIP Mode
  3390.  
  3391.    BOYAN provides a gossip mode for direct "chatting" with  the  person  on
  3392.    the  other side of your connection.  When the GOSSIP BAM is invoked, the
  3393.    echo keyboard toggle is automatically turned ON, and the screen is split
  3394.    into two parts.    The  upper,  larger part displays incoming text only,
  3395.    while the lower part displays  the  text  which  you  type.    All BOYAN
  3396.    commands are still available during gossip mode.  To leave  gossip mode,
  3397.    you must  select  a  different  action  module,  at which point the echo
  3398.    keyboard toggle is returned to its previous setting.
  3399.  
  3400.    4.3.4.7  HOST Action Module
  3401.  
  3402.    The HOST action module  works  in  conjunction  with the HOST.BSC script
  3403.    file in order to provide BOYAN's  host  mode.  A complete explanation of
  3404.    how to use the host mode is in section 4.8.
  3405.  
  3406.    4.3.4.8  VT-100 Emulation
  3407.  
  3408.    The  DEC  VT-100  terminal  is  an extremely popular terminal, used  for
  3409.    linking up with Digital Equipment Corporation's  mainframe  computers as
  3410.    well  as  many  other mainframes.  BOYAN's VT-100 action module supports
  3411.    nearly all of the VT-100/VT-102 functions,  including  region scrolling,
  3412.    display attributes (including extension  to  ANSI  colors), programmable
  3413.    tabs, block graphics, and dedicated printing.
  3414.  
  3415.    Dedicated  printing  gives  the  remote  system  control  of your  local
  3416.    printer:    when  dedicated print mode  is  triggered  by  the  <Esc>[4i
  3417.    sequence, all subsequent text  is  echoed to your printer rather than to
  3418.    the  screen.  The <Esc>[5i sequence stops dedicated  print  mode.    The
  3419.  
  3420.  
  3421.  
  3422.    4.3.4.8:  BOYAN Command Capabilities                                  55
  3423.    ________________________________________________________________________
  3424.  
  3425.  
  3426.  
  3427.  
  3428.    following Unix batch file uses dedicated printing to print files to your
  3429.    computer's printer:
  3430.  
  3431.         echo -n <Esc>[4i
  3432.         cat $1
  3433.         echo -n <Esc>[5i
  3434.  
  3435.    If you insert a "?"  character between the [ and the 4 and 5, then BOYAN
  3436.    will echo the text to both your screen and printer.
  3437.  
  3438.    The VT-100 secondary keyset has been tailored for use with  Unix's Emacs
  3439.    editor.  Please see Appendix D for a complete description of  the VT-100
  3440.    key definitions and how to customize them.
  3441.  
  3442.  
  3443.    4.4  BOYAN File Transfers
  3444.  
  3445.  
  3446.    4.4.1  Internal Protocols
  3447.  
  3448.    One of the most frequent activities during communication is transferring
  3449.    files.   Sending  a  file  from your PC to the remote computer is called
  3450.    uploading; receiving a file from the remote computer is downloading.  It
  3451.    is possible to transfer a file by simply sending its  contents directly,
  3452.    but  sometimes  phone  line  "noise"  can cause fatal errors during  the
  3453.    transfer.  Various "protocols"  have  been  developed  to check for, and
  3454.    correct,  those errors.  BOYAN version 5  supports  the  following  file
  3455.    transfer protocols internally:
  3456.  
  3457.    Xmodem               Very  widely used;  good  error-checking  with  the
  3458.                         checksum method.
  3459.  
  3460.    Relaxed Xmodem       Identical to Xmodem, but  with  relaxed  timing for
  3461.                         networks such as CompuServe.
  3462.  
  3463.    CRC-Xmodem           An  enhancement  to  Xmodem  that  improves  error-
  3464.                         checking with the Cyclic Redundancy Check method.
  3465.  
  3466.    1K-Xmodem            Just like CRC-Xmodem, except  the  data  is checked
  3467.                         for  errors less often.  This  is  very  fast  over
  3468.                         "clean" phone lines, but slow  if there is a lot of
  3469.                         line noise.  It will automatically convert  to CRC-
  3470.                         Xmodem in mid-upload if there are too  many errors.
  3471.                         This protocol is  sometimes  (incorrectly) referred
  3472.                         to as "Ymodem."
  3473.  
  3474.    Ymodem               Ymodem is identical to  1K-Xmodem,  except  that it
  3475.                         adds a "header block" so that the receiver knows in
  3476.                         advance the name and the  size  of  the  file being
  3477.  
  3478.  
  3479.  
  3480.    4.4.1:  BOYAN Command Capabilities                                    56
  3481.    ________________________________________________________________________
  3482.  
  3483.  
  3484.  
  3485.  
  3486.                         transferred.    (This  Ymodem  is  for  single-file
  3487.                         transfers only.    However,  BOYAN  can  use  Chuck
  3488.                         Forsberg's  DSZ  program  to perform "batch" Ymodem
  3489.                         transfers.)
  3490.  
  3491.    G-Ymodem             This variant of Ymodem is  very  fast  but  does no
  3492.                         error-checking.  It  is  meant to be used on modems
  3493.                         with their own  built-in  error-checking protocols,
  3494.                         such  as  MNP.   G-Ymodem can also be used with the
  3495.                         "1K-Xmodem-G" protocol available  on  some PC-Board
  3496.                         systems,  but  allow about ten  extra  seconds  for
  3497.                         handshaking as the transfer starts.
  3498.  
  3499.    ASCII                This is the  fastest  protocol of all, but there is
  3500.                         NO error-checking.   It  may only be used with text
  3501.                         files.  Generally, if the accuracy of  the transfer
  3502.                         is important, this method should not be used.
  3503.  
  3504.    Message Upload       This is a "smart"  ASCII  variant  that  BOYAN uses
  3505.                         only for uploading messages.  You can save time and
  3506.                         money   by   preparing   messages  with  your  word
  3507.                         processor  instead of typing on-line.  See  section
  3508.                         4.4.5 for details.
  3509.  
  3510.    4.4.2  External Protocols
  3511.  
  3512.    Many sophisticated protocols are supported by  standardized  programs on
  3513.    the  IBM-PC.   Jan van der Eijk's  PCKERMIT.EXE,  for  example,  is  the
  3514.    standard  for  the  Kermit   protocol,   widely   used   on  mainframes.
  3515.    Analogously, Chuck Forsberg's DSZ.EXE is the standard for Zmodem.  BOYAN
  3516.    integrates standard programs like these to  perform  so-called "external
  3517.    protocol transfers."  Updated versions of these programs may be found on
  3518.    many IBM-PC Bulletin Board Systems,  including  the  BOYAN  Support BBS.
  3519.    Any  external  protocol  can be configured to run through BOYAN (section
  3520.    3.12).
  3521.  
  3522.    BOYAN offers built-in  support  for the external protocols listed below.
  3523.    To use any of these protocols,  simply  copy the protocol's .COM or .EXE
  3524.    file (given in parentheses below) into your external protocol directory,
  3525.    e.g. C:\BOY5\PROT.  You do not need any extra batch files.  The external
  3526.    protocols appear on BOYAN's menus just like the internal protocols.
  3527.  
  3528.    Bimodem              (BIMODEM.COM)    This  protocol offers simultaneous
  3529.                         uploading, downloading, and chat.  You will want to
  3530.                         assign a function  key to the macro \DC-[%P:BIMENU]
  3531.                         (see section 3.9.4); this  function  key  will then
  3532.                         invoke BiMenu for setting up the  transfer.   After
  3533.                         you  return  to  BOYAN,  the  transfer  will  start
  3534.                         without your having to type anything, since Bimodem
  3535.  
  3536.  
  3537.  
  3538.    4.4.2:  BOYAN Command Capabilities                                    57
  3539.    ________________________________________________________________________
  3540.  
  3541.  
  3542.  
  3543.  
  3544.                         supports  auto-downloading  (described  in  section
  3545.                         3.12.1).
  3546.  
  3547.    Compuserve-B         (OZBEXT.EXE)   The  Quick-B  protocol  available on
  3548.                         CompuServe.  Supports auto-downloading.
  3549.  
  3550.     HSLINK              (HSLINK.EXE)   A  unique  external  protocol  which
  3551.                         allows   you  to  upload   and   download   files
  3552.                         simultaneously. By Samual H. Smith.
  3553.  
  3554.    Kermit               (PCKERMIT.EXE)  Widely used on mainframe systems.
  3555.  
  3556.    Megalink             (MLINK.COM)      A   streaming  variant  of  Xmodem
  3557.                         developed by Paul Meiners.
  3558.  
  3559.    MPt                  (MPT.EXE)   A friendly, fast protocol developed  by
  3560.                         Matthew  Thomas (read "Em-point").  Supports  auto-
  3561.                         downloading.
  3562.  
  3563.    SEAlink              (CLINK.EXE)  An  enhancement to Xmodem developed by
  3564.                         System Enhancement Associates.
  3565.  
  3566.    Ymodem-batch         (DSZ.COM)    Like  BOYAN's  built-in   Ymodem,  but
  3567.                         supports batch transfers.
  3568.  
  3569.    Zmodem               (DSZ/GSZ.exe)  The new "standard" protocol for both
  3570.                         Bulletin Board and Unix systems, developed by Chuck
  3571.                         Forsberg.    Very  fast  and reliable, and supports
  3572.                         auto-downloading.
  3573.  
  3574.    Many external protocols  allow  "batch transfers"; that is, the transfer
  3575.    of  multiple  files  during a single invocation of the external program.
  3576.    BOYAN handles batch downloads automatically.  To specify a batch upload,
  3577.    you  may  either  1) enter  multiple  filenames  at  BOYAN's "FILENAME:"
  3578.    prompt, e.g. FOO.EXE BOY*.ZIP BAR.DOC; or 2) use the File Manager to tag
  3579.    multiple  filenames  directly  from a disk directory,  as  described  in
  3580.    section 4.6.1.
  3581.  
  3582.    Important note:  the external protocols listed above are all copyrighted
  3583.    ShareWare products, with licensing  agreements  independent  of  that of
  3584.    BOYAN Communications.  Please  register  those  that  you use with their
  3585.    respective authors!
  3586.  
  3587.    4.4.3  Auto-Find Filename Feature
  3588.  
  3589.    BOYAN  has  the  unique feature of being able to automatically determine
  3590.    the name of the file you wish to transfer based on  what  you  have told
  3591.    the remote computer.  Other  communications programs require you to type
  3592.    the  full filename twice.  Only filenames  with  a  three-letter  suffix
  3593.    (e.g. TWIDDLE.ARC)  can  be  found  this way; if you want to send a file
  3594.    named TEST.X, you will have to retype the filename for  BOYAN.   You may
  3595.    disable this feature if you wish (section 3.7).
  3596.  
  3597.  
  3598.  
  3599.    4.4.4:  BOYAN Command Capabilities                                    58
  3600.    ________________________________________________________________________
  3601.  
  3602.  
  3603.  
  3604.  
  3605.    4.4.4  <PgUp> Upload File
  3606.  
  3607.    This is the procedure you should  follow  for uploading a file from your
  3608.    PC to a remote system:
  3609.  
  3610.       1.  From BOYAN's terminal mode, tell  the remote system that you wish
  3611.           to upload a file.  As it prompts, enter the  file's  name and the
  3612.           upload protocol you wish to use.
  3613.  
  3614.       2.  When the remote  system  says  it  is ready to receive, press the
  3615.           <PgUp> key.   (Alternatively, you may press <Ctrl-PgUp> to select
  3616.           the file(s) straight from  a  file  directory  list.  See section
  3617.           4.6.1.)
  3618.  
  3619.       3.  From the menu of protocols, press the letter corresponding to the
  3620.           same protocol you told the remote system you would use,  or press
  3621.           <Enter> instead to use the default protocol.
  3622.  
  3623.       4.  In  its  upload  window BOYAN will display the directory path and
  3624.           filename  of the file to be transferred.  If the file you wish to
  3625.           upload is not in  the  path  displayed,  press the <UpArrow> key,
  3626.           edit the pathname, and press  <Enter>.  Make sure the filename(s)
  3627.           are correct and press <Enter>.  The transfer should begin.
  3628.  
  3629.       5.  To abort the  upload  procedure  at  any time, press <Esc>.  With
  3630.           BOYAN's  internal  protocols,  a  bar  to the left of the  upload
  3631.           window graphically indicates the percentage of the  file transfer
  3632.           completed.
  3633.  
  3634.       6.  When the transfer finishes, successfully or unsuccessfully, BOYAN
  3635.           will sound an  alarm  and  return  you  to terminal mode.  If the
  3636.           upload  was successful, the  total  transfer  time  and  transfer
  3637.           efficiency will also be displayed.  The efficiency is based  on a
  3638.           pure transmission at full speed, so any figure above 75% is quite
  3639.           good.
  3640.  
  3641.    4.4.5  Uploading a Message
  3642.  
  3643.    If you write a message using your word processor, SideKick, or any other
  3644.    ASCII  text  editor, BOYAN can upload it just as if you  had  typed  the
  3645.    message directly.  First, from terminal mode, tell the remote system you
  3646.    wish to enter a message; enter all header information such as addressee,
  3647.    subject,  etc.  When you are given the prompt for the first line of  the
  3648.    message, press <PgUp>.  Select Message Upload as the protocol.  You will
  3649.    have to enter the message's filename manually.
  3650.  
  3651.    BOYAN provides a degree of convenience in message uploading not found in
  3652.    any other communications program.   First,  it  automatically determines
  3653.    the remote system's line  prompt;  press <Enter> to verify.  (This field
  3654.  
  3655.  
  3656.  
  3657.    4.4.5:  BOYAN Command Capabilities                                    59
  3658.    ________________________________________________________________________
  3659.  
  3660.  
  3661.  
  3662.  
  3663.    may be left blank if the remote system does not give  you  a  new prompt
  3664.    for  every  line  of  the  message.)    Then watch as BOYAN "types"  the
  3665.    message.  BOYAN automatically  adds  a space to any blank lines, because
  3666.    most systems interpret a blank line as the end-of-message  signal.    If
  3667.    you have turned the "Auto-Detect Word Wrap" feature ON (section 3.7), it
  3668.    will automatically detect an incoming <Return> character and assume that
  3669.    the remote system has "word-wrapped."  In that case, BOYAN will send the
  3670.    line without a <Return> character.   This  feature means that you do not
  3671.    need  to  tailor  your  prepared  messages to the system's maximum  line
  3672.    length; if the system word-wraps, BOYAN will take care of it for you.
  3673.  
  3674.    Not all systems can accept the  message  text  as fast as BOYAN can send
  3675.    it.  To slow BOYAN down, increase the inter-character  pacing  delay  in
  3676.    Config Area <E> (section 3.8).
  3677.  
  3678.    4.4.6  <PgDn> Download File
  3679.  
  3680.    Follow the procedure below to download a file from the remote  system to
  3681.    your PC:
  3682.  
  3683.       1.  From BOYAN's terminal  mode,  instruct the remote system that you
  3684.           wish  to  download  a file.  As it prompts, enter the file's name
  3685.           and the download protocol you wish  to  use.  If the protocol you
  3686.           selected  supports auto-downloading  (e.g.,  Zmodem  or  MPt--see
  3687.           section  3.12.1),  then  sit back and relax; BOYAN will start the
  3688.           download automatically.  Otherwise...
  3689.  
  3690.       2.  When the remote system says it is ready to send, press <PgDn>.
  3691.  
  3692.       3.  From the protocol  menu,  select  the  menu  letter  of  the same
  3693.           protocol you told  the  remote  system  you would use.  Or, press
  3694.           <Enter> to accept the default protocol.
  3695.  
  3696.       4.  The next step varies a  little, depending on whether the protocol
  3697.           needs to be told the download filename.
  3698.  
  3699.              a.  If you are  using  one of BOYAN's built-in protocols, such
  3700.                  as  Xmodem or ASCII, BOYAN's "Auto-Find Filename"  feature
  3701.                  will determine the name of the file to be downloaded.   In
  3702.                  the download window, BOYAN displays the  filename  as well
  3703.                  as the directory pathname.  Press <UpArrow> if you wish to
  3704.                  edit the  drive/directory  into  which  the  file  will be
  3705.                  downloaded.  When the path and filename are correct, press
  3706.                  <Enter> at the "FILENAME:" prompt.   For  ASCII downloads,
  3707.                  you may have to  press  <Enter> one more time to signal to
  3708.                  the remote system that you are ready.   The  transfer will
  3709.                  begin.
  3710.  
  3711.  
  3712.  
  3713.    4.4.6:  BOYAN Command Capabilities                                    60
  3714.    ________________________________________________________________________
  3715.  
  3716.  
  3717.  
  3718.  
  3719.              b.  Alternatively, if you are using an external  protocol such
  3720.                  as Kermit, you do not have to enter the filename  at all--
  3721.                  the  protocol  takes  care  of  that.  You still have  the
  3722.                  chance to modify the drive  and  directory  which  will be
  3723.                  used  for  the  download.  Press <Enter>  at  the  "PATH:"
  3724.                  prompt; the transfer will begin.
  3725.  
  3726.       5.  Press <Esc> at any  time  to abort the download.  For Ymodem-type
  3727.           downloads, a bar to  the  left  of  the upload window graphically
  3728.           indicates the percentage of the file transfer completed.
  3729.  
  3730.       6.  When the transfer finishes,  BOYAN  sounds a brief alarm.  If the
  3731.           download was successful, the    total  transfer time and transfer
  3732.           efficiency will also be displayed.  The efficiency is based  on a
  3733.           pure transmission at full speed, so any figure above 75% is quite
  3734.           good.
  3735.  
  3736.    You will find that  BOYAN's  transfers almost always take less time than
  3737.    the remote system predicts they will!
  3738.  
  3739.  
  3740.    4.5  Session Logging
  3741.  
  3742.  
  3743.    4.5.1  <Alt-L> Log to Disk Toggle
  3744.  
  3745.    Press <Alt-L> to log all incoming text to a disk file.  You will have to
  3746.    enter the log file's name, or just hit  <Enter>  to  accept  the default
  3747.    (section 3.6).  If the file  exists,  BOYAN  will append the new text to
  3748.    the  end of the file.  When you begin logging, BOYAN runs the "Log  file
  3749.    init" Auto-macro, which adds  a  one-line status message to the log file
  3750.    giving the time and date.  Press <Alt-L> again to stop disk logging.
  3751.  
  3752.    Note that  BOYAN's Scroll-Back buffer offers a convenient alternative to
  3753.    the  <Alt-L> command:  at any time, you can scroll back through the text
  3754.    of  your session, and selectively mark regions to be filed to disk.  The
  3755.    Scroll-Back buffer is described in section 4.7.2.
  3756.  
  3757.    4.5.2  <Alt-S> Save Screen Image to Disk
  3758.  
  3759.    Press <Alt-S> to save the current  screen  to  a disk file.  This file's
  3760.    directory  and filename are configurable (section 3.6).    Each  time  a
  3761.    screen is saved, BOYAN appends a one-line header and the screen image to
  3762.    the end of the file.
  3763.  
  3764.  
  3765.  
  3766.    4.5.3:  BOYAN Command Capabilities                                    61
  3767.    ________________________________________________________________________
  3768.  
  3769.  
  3770.  
  3771.  
  3772.    4.5.3  <Alt-U> Toggle BOYAN.USE Usage Log File
  3773.  
  3774.    BOYAN automatically maintains an activity log file.   Unless  you change
  3775.    the configuration, the activity log will be called BOYAN.USE and will be
  3776.    saved in  the  BOYAN  home  directory.    The  log  keeps  track  of the
  3777.    following:
  3778.  
  3779.     - The date, time, and length of all system connections made with BOYAN.
  3780.  
  3781.     - All non-batch file transfers, including the filename,  protocol name,
  3782.       and  transfer  efficiency  percentage.  (For information  on  how  to
  3783.       record  Zmodem  batch  transfers  in  the usage log, please refer  to
  3784.       Appendix A.)
  3785.  
  3786.    BOYAN's Auto-macros allow you to  completely  customize  the  format and
  3787.    contents of the activity log.  For example, you could customize BOYAN to
  3788.    use the CDS (Call Data Standard) format for its usage  log.   Please see
  3789.    sections 3.9.3 and 3.6 for configuration information.
  3790.  
  3791.    4.5.4  <Ctrl-PrtSc> Printer Log Toggle
  3792.  
  3793.  
  3794.    After you press <Ctrl-PrtSc> all incoming text is logged (copied) to the
  3795.    printer.  Before printing starts, however, BOYAN offers  a  brief status
  3796.    line  menu  of  printer  options:  you  can  press I to run the  printer
  3797.    Initialization  macro;  L  to advance the printer to the next line; F to
  3798.    advance  the  printer to the next form (page); or M to  "type"  a  brief
  3799.    message to the  printer.    When  the  printer is set up properly, press
  3800.    <space> for BOYAN to start printing.
  3801.  
  3802.    To stop printer logging later, press <Ctrl-PrtSc> again.  (Section 3.9.3
  3803.    describes how to customize the printer initialization macro.)
  3804.  
  3805.    4.5.5  <Shift-PrtSc> Save Screen Image to Printer
  3806.  
  3807.    As always, the <Shift-PrtSc> command will copy the entire current screen
  3808.    to the printer.
  3809.  
  3810.  
  3811.    4.6  DOS and File Commands
  3812.  
  3813.  
  3814.    4.6.1  <Alt-F> The File Manager
  3815.  
  3816.    BOYAN houses a complete integrated file manager.  To  invoke  it,  press
  3817.    <Alt-F> from terminal mode.  BOYAN will read,  alphabetize,  and display
  3818.    the  names  of  the  files  found  in  the current directory.  Names  of
  3819.    subdirectories of the current directory are  also  displayed, surrounded
  3820.    by arrows.   The  free disk space is shown on the top line of the screen
  3821.  
  3822.  
  3823.  
  3824.    4.6.1:  BOYAN Command Capabilities                                    62
  3825.    ________________________________________________________________________
  3826.  
  3827.  
  3828.  
  3829.  
  3830.    (unless you disable this  feature  in  configuration--see  section 3.7).
  3831.    BOYAN handles up to 350 files in each subdirectory.
  3832.  
  3833.    At the bottom of the screen, you will see a menu of key options:
  3834.  
  3835.         Newdir Mark Send Upload Info List Fon Copy Del Exec Ren View Word
  3836.  
  3837.    Additional, unlisted options are Pattern, <Ctrl-P> = unmark pattern, Y =
  3838.    show free space, and <Ins> = issue DOS command.  However, these commands
  3839.    will be listed  on  the help screen if you press <F1>.  Note:  the Copy,
  3840.    Delete,  Execute, Rename, View, and Word  processor  commands  are  only
  3841.    available if there is enough memory for a DOS shell (see section 3.5).
  3842.  
  3843.    Most File Manager commands, such as  Copy  and Upload, may be applied to
  3844.    multiple  "marked"  files  at a time.  Use the space bar or the M key to
  3845.    selectively mark files for  the  operation; then select the command.  In
  3846.    any  DOS  command,  the symbol [marked] will be successively replaced by
  3847.    each of the marked  filenames.   For example, the command "COPY [marked]
  3848.    A:" will copy each marked file to the A: drive.
  3849.  
  3850.    Select from among the following commands:
  3851.  
  3852.     - <F1>:  View help screen.
  3853.  
  3854.     - <Esc> or mouse right button:  Return to terminal mode.
  3855.  
  3856.     - cursor  keys:    Use the four arrow keys to move the highlighted file
  3857.       bar from file to file.  Press <Home> to go to  the  beginning  of the
  3858.       directory, and <End> to go to the end.  If there  are  more  than 100
  3859.       files  in the directory, press <PgUp> and  <PgDn>  to  change  pages.
  3860.       Finally, use the <Ctrl-PgUp> and <Ctrl-PgDn> key combinations to move
  3861.       to the top and bottom, respectively, of the current column.
  3862.  
  3863.     - <Alt+letter>:  Move the highlight bar directly to  the  next filename
  3864.       which starts with that letter.  For example,  pressing  <Alt-E> would
  3865.       jump the highlight to the next filename starting with "E".
  3866.  
  3867.     - <space> or Mark:  Set/unset a  "mark"  on the current filename.  Mark
  3868.       as many files as you like within the directory.
  3869.  
  3870.     - <Enter>:  If  the  highlight  is  on  a  subdirectory  name, pressing
  3871.       <Enter>  enters  that  subdirectory.    On  the  other hand,  if  the
  3872.       highlight is on a filename, then the <Enter> key selects  the current
  3873.       "default File Manager option."   This default option depends on which
  3874.       BOYAN  command  is  making use of the File Manager.  For example, the
  3875.       <Ctrl-PgUp> upload command invokes  the  File  Manager with a default
  3876.       option of U, so that to upload the marked files  you  need only press
  3877.       <Enter>.
  3878.  
  3879.  
  3880.  
  3881.    4.6.1:  BOYAN Command Capabilities                                    63
  3882.    ________________________________________________________________________
  3883.  
  3884.  
  3885.  
  3886.  
  3887.     - mouse left button:
  3888.  
  3889.        * single click:  Set highlight bar at the mouse cursor position.
  3890.  
  3891.        * hold down and drag:  Move highlight bar with mouse.
  3892.  
  3893.        * double-click on filename:  Same as pressing <Enter>.
  3894.  
  3895.        * single click on menu  line:   Select option from choices listed on
  3896.          line 24 of the screen.
  3897.  
  3898.     - Copy:  Press C to copy file(s).   Type  the  target  for the copy and
  3899.       press <Enter>.    Note:  you  may print any file by copying it to the
  3900.       file PRN .
  3901.  
  3902.     - Delete:  To  delete  file(s),  press  D.   As with any other command,
  3903.       press <Esc> to abort or <Enter> to accept.
  3904.  
  3905.     - Execute script:  Press E to execute the highlighted .BSC  file (BOYAN
  3906.       script file).
  3907.  
  3908.     - Execute file(s):   To  invoke  .EXE,  .COM, or .BAT file(s), press E.
  3909.       You  may  add  any command line parameters to the end of the filename
  3910.       before pressing <Enter>.
  3911.  
  3912.     - FON  file:    If  the  highlight is on a .FON file in your  FON  file
  3913.       directory, then press F to activate that file as your current Dialing
  3914.       Directory.
  3915.  
  3916.     - Info  about file size:  Pressing I gives the size of the current file
  3917.       in  bytes,  and  the  approximate  length  of  time  it would take to
  3918.       transfer the file at the current  baud  rate.   If your port speed is
  3919.       19200 or 57600 baud, then the estimate will  be  based  on  the speed
  3920.       given in your modem's "CONNECT xxxx" message, even  if  BOYAN's Auto-
  3921.       Detect baud rate feature is OFF.
  3922.  
  3923.     - List filename(s) to BOYMARK.LST:   Selecting L quits the File Manager
  3924.       and creates a BOYMARK.LST file  in the current directory containing a
  3925.       list  of  all  the   marked   filenames,   including  the  full  path
  3926.       specification for each.   If  no  files  are marked, then BOYMARK.LST
  3927.       will contain the name of the single highlighted file.
  3928.  
  3929.     - New directory:  When you press N you will be given a new "DIR" prompt
  3930.       so you can change drives, directories, or file specifiers.    If  the
  3931.       highlight was on a  subdirectory  name, you can just press <Enter> to
  3932.       select that subdirectory for viewing.
  3933.  
  3934.  
  3935.  
  3936.    4.6.1:  BOYAN Command Capabilities                                    64
  3937.    ________________________________________________________________________
  3938.  
  3939.  
  3940.  
  3941.  
  3942.     - Pattern  mark:   Use this command to mark many files at  once.    For
  3943.       example, to delete all files with a suffix of .BAK, you would type P,
  3944.       *.BAK <Enter>, D <Enter>.
  3945.  
  3946.     - <Ctrl-P> pattern unmark:  Use this command to unmark  many  files  at
  3947.       once.  For example, to delete all files except those with a suffix of
  3948.       .BAK, you would first mark all files with P <Enter>, then  unmark the
  3949.       .BAK  files  with  <Ctrl-P>  *.BAK  <Enter>, and finally  delete  the
  3950.       remaining marked files with D <Enter>.
  3951.  
  3952.     - Rename:   Press R to rename file(s).  Then type the new name for  the
  3953.       file and press <Enter>.
  3954.  
  3955.     - Send filename(s) over modem:  Press S to send filename(s) directly to
  3956.       the modem, as if you had typed them by hand.  BOYAN adds a <CR> after
  3957.       each filename.
  3958.  
  3959.     - Upload file(s):  Press U  to upload a file or files.  If no files are
  3960.       marked, BOYAN simply opens the Upload Window for the highlighted file
  3961.       so you can select a protocol and upload the file (section 4.4.4).  If
  3962.       multiple  files  are  marked,   BOYAN   lists   those   filenames  to
  3963.       BOYMARK.LST, then enters the Upload Window with a default filename of
  3964.       @D:BOYMARK.LST  (where  d  is  the  current drive letter).    Several
  3965.       external  protocols--including  Zmodem, batch-Ymodem,  and  MPt--will
  3966.       handle  such a file list properly, uploading each  of  the  files  in
  3967.       turn.  Note:  this is the  default  command  if  you  enter  the File
  3968.       Manager by pressing <Ctrl-PgUp> from terminal mode.
  3969.  
  3970.     - View:  Press V to view  the  file(s)  using the TYPE command or other
  3971.       command which you have substituted (section 3.6).
  3972.  
  3973.     - Word processor:  Press W to  edit  the  file using the TED program or
  3974.       other editor which you have substituted (section 3.6).
  3975.  
  3976.     - Y = Free  space:   press Y to display the amount of free space on the
  3977.       drive.  (The free space is displayed automatically if the "Check Free
  3978.       disk space" setting is ON in Config Area <D>.)
  3979.  
  3980.     - <Ins>,  Issue  DOS  Command:  Press <Ins> to bring up the ">" prompt.
  3981.       Type any  DOS  command  and  BOYAN will execute it.  If any files are
  3982.       marked, you may include the string [marked] in the DOS command; BOYAN
  3983.       will then create and execute a batch file where a marked  filename is
  3984.       substituted for [marked] on each line.
  3985.  
  3986.    4.6.2  <Alt-J> Jump to DOS
  3987.  
  3988.    If you have  reserved  enough  memory  for a DOS shell, pressing <Alt-J>
  3989.    will jump you directly into a DOS shell.    From  DOS,  you may use your
  3990.    word  processor,  un-zip  a file, or run your spreadsheet.  When you are
  3991.  
  3992.  
  3993.  
  3994.    4.6.2:  BOYAN Command Capabilities                                    65
  3995.    ________________________________________________________________________
  3996.  
  3997.  
  3998.  
  3999.  
  4000.    ready to return to BOYAN, be sure the BOYAN disk is in the same drive it
  4001.    had been in before the shell, and type EXIT at the  DOS  prompt.   BOYAN
  4002.    will return to your communication session as if you had never left it.
  4003.  
  4004.    4.6.3  <Alt-N> New Default Drive/Directory
  4005.  
  4006.    To  change  the  current logged drive or subdirectory, press <Alt-N> and
  4007.    enter  the  new  path.     Valid  examples  are  B:,  \MODEM\FILES,  and
  4008.    c:\utility.
  4009.  
  4010.    4.6.4  <Alt-V> View File
  4011.  
  4012.    To  view  the  contents of an ASCII file, press <Alt-V>.  When prompted,
  4013.    you may either  directly  type  the  name  of  a  file to view, or press
  4014.    <Enter>  to  select  from  the  File  Manager.   If you invoke the  File
  4015.    Manager, you may use the space bar to  select  multiple  files  to view;
  4016.    then press <Enter> to view the file(s).
  4017.  
  4018.    You may configure the DOS command used by  BOYAN  for  viewing  files in
  4019.    section 3.6.
  4020.  
  4021.    4.6.5  <Alt-W> Word Process (Edit) File
  4022.  
  4023.    To edit an ASCII file, press <Alt-W>.   When  prompted,  you  may either
  4024.    directly type  the  name  of  a file to edit, or press <Enter> to select
  4025.    from the File  Manager.  If you invoke the File Manager, you may use the
  4026.    space bar to select multiple files  to  edit; then press <Enter> to edit
  4027.    the file(s).
  4028.  
  4029.    You may configure the DOS command used by  BOYAN  for  editing  files in
  4030.    section 3.6.
  4031.  
  4032.    4.6.6  <Alt-Y> Free Space on Disk
  4033.  
  4034.    Press <Alt-Y> to find the number of bytes of free  storage  space on any
  4035.    disk.  Select the drive by letter, or just press <Enter> to see the free
  4036.    space on the current disk.
  4037.  
  4038.    4.6.7  <Ins> Issue DOS Command
  4039.  
  4040.    If  you  have  reserved enough memory for a DOS shell (see section 3.5),
  4041.    pressing <Ins> will bring up the  ">"  prompt.   Type any DOS command or
  4042.    program name and BOYAN will execute it.
  4043.  
  4044.  
  4045.  
  4046.    4.7.1:  BOYAN Command Capabilities                                    66
  4047.    ________________________________________________________________________
  4048.  
  4049.  
  4050.  
  4051.  
  4052.    4.7  Scroll-Back Buffer, Scripts, etc.
  4053.  
  4054.  
  4055.    4.7.1  <Alt-R> Run Script File
  4056.  
  4057.    Almost any action BOYAN performs can be automated with the use  of BOYAN
  4058.    Script  Files.  A BOYAN Script File is a series of macro commands stored
  4059.    in a normal text file.   A  full description of BOYAN's script language,
  4060.    along with appropriate examples, is in chapter 5.
  4061.  
  4062.    When you press <Alt-R>, you are prompted to enter the name of the script
  4063.    file to  run.    The  script file takes control, replacing the  BOYAN v5
  4064.    message  on  the  status  line  with  its  name.  While the script  file
  4065.    controls BOYAN, the only valid  keyboard commands is <Esc>, which aborts
  4066.    the script.
  4067.  
  4068.    As you will learn in chapter 5, the commands within a script file can be
  4069.    organized into "blocks".  To run just one of those blocks,  respond with
  4070.    scriptname;blockname  to the "SCRIPT:" prompt.  For example, to run just
  4071.    the "logon" block of  the  "wildcat" script, you would press <Alt-R> and
  4072.    respond "wildcat;logon".
  4073.  
  4074.    Although programming scripts from  scratch  can  be quite complex, BOYAN
  4075.    provides a facility which writes custom scripts for you.  This facility,
  4076.    called "Script Learn," operates within BOYAN's Scroll-Back buffer.
  4077.  
  4078.    4.7.2  <UpArrow> Scroll-Back Buffer
  4079.  
  4080.    BOYAN provides a unique Scroll-Back feature.  After reserving memory for
  4081.    its  own  variables and the DOS Shell  (section  3.5),  BOYAN  uses  all
  4082.    remaining memory for the  Scroll-Back  Buffer,  which traps all incoming
  4083.    text from the  modem and "remembers" it so you can scan it later.  BOYAN
  4084.    can often save thousands of lines of past text.  Furthermore, the buffer
  4085.    remembers  what  YOU  type.    This  is  the  trick  which   lets  BOYAN
  4086.    automatically build  script files for you, from a communications session
  4087.    which has already been completed!
  4088.  
  4089.    Press the <UpArrow> key to invoke the Scroll-Back Buffer.  Your "current
  4090.    position" is  at  the  bottom  of the screen.  A number in the top-right
  4091.    corner tells you which line  of the buffer you are on.  You now have the
  4092.    following options:
  4093.  
  4094.     - <F1>:  detailed help.
  4095.  
  4096.     - <Esc> or right mouse button:  exit the Scroll-Back Buffer  and return
  4097.       to terminal mode.
  4098.  
  4099.     - <UpArrow>, <DownArrow>:  scroll line-by-line through the buffer.
  4100.  
  4101.  
  4102.  
  4103.    4.7.2:  BOYAN Command Capabilities                                    67
  4104.    ________________________________________________________________________
  4105.  
  4106.  
  4107.  
  4108.  
  4109.     - <PgUp>, <PgDn>:  scroll page-by-page through the buffer.
  4110.  
  4111.     - <End>:  move to the end  of  the  buffer, which shows the most recent
  4112.       communication.  Press  <End>,  then  <PgDn>  to  see  the  first page
  4113.       (oldest text) in the buffer.
  4114.  
  4115.     - <Home>:  scroll back to the beginning of your last connection.  Every
  4116.       time you make a  connection,  BOYAN places an invisible marker in the
  4117.       buffer.  <Home> takes you back to each of these markers in turn.
  4118.  
  4119.     - mouse left button:
  4120.  
  4121.        * click and hold near top of screen:  scroll up through the buffer.
  4122.  
  4123.        * click and hold  near  bottom  of  screen:  scroll down through the
  4124.          buffer.
  4125.  
  4126.        * single click on menu  line:   Select option from choices listed at
  4127.          the bottom of the screen.
  4128.  
  4129.     - File:  To  file a region of text to disk, first mark the beginning of
  4130.       the region with the M command.  Then use the cursor keys to place the
  4131.       last line of  the region at the bottom of the screen.  When you press
  4132.       F,  you will be prompted to enter a filename (or press <Enter> to use
  4133.       the  default;  see  section 3.6).  The region will be appended to the
  4134.       disk file.
  4135.  
  4136.     - Go to mark:   pressing G scrolls so that the marked line is placed at
  4137.       the bottom of the screen.
  4138.  
  4139.     - Locate:  search for text within the buffer.  You will be prompted for
  4140.       a string to locate.  BOYAN's locate routine is not case-sensitive, so
  4141.       "bOyAn" will  match  "BoYaN".    If  the  string is found, the buffer
  4142.       scrolls so the string is on  the  bottom  line of the buffer, and the
  4143.       line is highlighted.  To search back further in the buffer  for other
  4144.       occurrences of the same string, press L, then <Enter>.
  4145.  
  4146.     - Mark:  To use the scroll-back buffer's F, P, Q,  and  W commands, you
  4147.       must  first mark the beginning of the region with the M command.  Use
  4148.       the cursor keys to move the first line of the  desired  region to the
  4149.       bottom  line  of  the screen.  Then press M.  The mark is set and the
  4150.       line is highlighted.
  4151.  
  4152.     - Print:  When you want to print a region of text,  the  first  line of
  4153.       the region must already have been  marked  with the M command.  Then,
  4154.       use the cursor keys to place the  last  line  of  the  region  at the
  4155.       bottom of the  screen.   When you press P, you will be able to set up
  4156.       the printer automatically with BOYAN's printer interface (see section
  4157.       4.5.4), and then the region will be printed.
  4158.  
  4159.  
  4160.  
  4161.    4.7.2:  BOYAN Command Capabilities                                    68
  4162.    ________________________________________________________________________
  4163.  
  4164.  
  4165.  
  4166.  
  4167.     - Quick-learn region:  The Q command lets expert BOYAN users bypass the
  4168.       normal interactive Script Learn Mode.  To use this command,  mark the
  4169.       top line  of  the  region  to learn, and then scroll so that the last
  4170.       line of the  region is at the bottom of the screen.  BOYAN will learn
  4171.       a  script file covering the entire  region,  suppressing  the  normal
  4172.       Waitfor/Response prompts.   Since  this script may well require fine-
  4173.       tuning,  BOYAN  offers  you the chance to edit the script immediately
  4174.       after learning it.
  4175.  
  4176.     - Script Learn Mode:  described below.
  4177.  
  4178.     - Word process (edit) region:  Like the F command, this  command writes
  4179.       the region between the mark and the current bottom line of the screen
  4180.       to a disk file.  However, the W command then immediately invokes your
  4181.       text  editor  on  that  file.   This is a handy way to quote  from  a
  4182.       message, for example.
  4183.  
  4184.    Note  that  if  the buffer should become full, the oldest  text  in  the
  4185.    buffer will be overwritten by new text as it flows in.
  4186.  
  4187.    4.7.3  Script Learn Facility
  4188.  
  4189.    The most common use of script files is probably for automatic logging-on
  4190.    to  a  system.   Rather than making you mechanically enter your name and
  4191.    password each time you connect, the  computer  should be able to do this
  4192.    for  you.    BOYAN  script  files  are  wonderful  for  automating  such
  4193.    communication chores--typing out  answers  to prompts which are the same
  4194.    every  time.   Best yet, you do not even have to  learn  BOYAN's  Script
  4195.    Language  in  order  to  write  custom scripts.  BOYAN's "Script  Learn"
  4196.    facility writes them for you.
  4197.  
  4198.    During a communication session the scroll-back buffer always keeps track
  4199.    of which portions  of  the  buffered  text were received from the remote
  4200.    system,  and  which  portions were typed by you.  It also remembers when
  4201.    you  executed  certain  commands, such as clearing the screen, opening a
  4202.    disk log file, or hanging up.    Later,  even after you have logged off,
  4203.    BOYAN can convert any region of the scroll-back buffer into an automated
  4204.    script file.  All you  have  to  do  is  find the location in the buffer
  4205.    where you want learning to start, and press S.
  4206.  
  4207.    4.7.3.1  Example: Auto-Logon Scripts
  4208.  
  4209.    The  simple  procedure  outlined below demonstrates how  to  make  BOYAN
  4210.    "learn" a script to automate logging onto a typical system.
  4211.  
  4212.       1.  Dial the system and log on as usual.  Enter your  name, password,
  4213.           etc. at all the appropriate prompts.  When you reach the point at
  4214.           which  you  want  the  automatic  logon  to  stop--typically  the
  4215.  
  4216.  
  4217.  
  4218.    4.7.3.1:  BOYAN Command Capabilities                                  69
  4219.    ________________________________________________________________________
  4220.  
  4221.  
  4222.  
  4223.  
  4224.           system's "Main Menu"--press <UpArrow>  to  enter  BOYAN's Scroll-
  4225.           Back buffer.
  4226.  
  4227.       2.  The next step is to scroll back to the first  line  in the buffer
  4228.           to be learned.  That line should be placed at  the  bottom of the
  4229.           screen.  In the case of a logon script, you can do this by simply
  4230.           pressing  <Home>, which scrolls back to  the  beginning  of  your
  4231.           session.
  4232.  
  4233.       3.  Press S to start Script Learning.  You will be prompted  to enter
  4234.           a  name  for your script file.  Type a name of  1-8  letters  and
  4235.           press  <Enter>.    (You  do  not  need  to  add the ".BSC" script
  4236.           filename suffix; BOYAN does that automatically.)  If the file you
  4237.           specify already exists, BOYAN asks you to choose whether to [A]dd
  4238.           to the current script, or build a [N]ew  script  (overwriting the
  4239.           old one).
  4240.  
  4241.       4.  BOYAN will scroll to find the first system prompt  to  which  you
  4242.           responded.  That prompt  will  be  highlighted  on the screen and
  4243.           also  displayed  on  the Status Line, where  BOYAN  displays  the
  4244.           message "WaitFor:".  All you have  to  do is press <Enter>.  This
  4245.           confirms  that you want the auto-logon script  to  wait  for  the
  4246.           prompt before continuing.   (Note:  if  the  prompt is very long,
  4247.           BOYAN  only  needs  to know its last 25 characters.  It is normal
  4248.           for the beginning of the prompt not to be highlighted.)
  4249.  
  4250.       5.  Next,  the  status  line displays your response to the prompt, as
  4251.           shown  in  the  Scroll-Back buffer.  Your response is followed by
  4252.           the  "{"  character,  which symbolizes a Carriage Return.  If the
  4253.           response shown is correct, just press <Enter>.
  4254.  
  4255.       6.  BOYAN scrolls ahead to find  the next system prompt you answered.
  4256.           Again,  confirm  BOYAN's   "WaitFor:"  and  "Response:"  cues  by
  4257.           pressing  <Enter>.    As  you  continue to press  <Enter>,  BOYAN
  4258.           automatically  builds  the  logon  script  in  your  script  file
  4259.           directory.
  4260.  
  4261.       7.  When you reach the  end  of  the  buffer, BOYAN reports "learning
  4262.           finished."    (You  may  also  finish  by  pressing <Esc>  before
  4263.           reaching the end of the buffer,  if  the region to learn does not
  4264.           extend to the end of the buffer.)  Press <Esc>  to  return to the
  4265.           communication screen.
  4266.  
  4267.       8.  Now that the auto-logon script  has been written, you must follow
  4268.           one last step to make the logon completely automatic:    put  the
  4269.           logon script name in the system's dialing directory entry.  Press
  4270.           <Alt-D><E> to edit the entry, press enough <Enter>'s  to  move to
  4271.           the  "Script" column, and type the  name  of  your  newly-created
  4272.           script.  Then press <PgDn> to complete the directory entry.
  4273.  
  4274.  
  4275.  
  4276.    4.7.3.2:  BOYAN Command Capabilities                                  70
  4277.    ________________________________________________________________________
  4278.  
  4279.  
  4280.  
  4281.  
  4282.    That's it!  The next time you dial that system,  the  logon will proceed
  4283.    entirely automatically.
  4284.  
  4285.    4.7.3.2  Password Security Feature
  4286.  
  4287.    BOYAN's Script Learn Mode includes logic to determine when you  may have
  4288.    typed your password to the remote system.  In such  a  case, it provides
  4289.    you with a default response consisting of not your actual  password, but
  4290.    rather the  macro  %PW{  .   This macro, when executed in a script file,
  4291.    sends your system password as specified in the  Dialing  Directory (plus
  4292.    <Enter>).   Using  %PW  in  a script instead of the literal text of your
  4293.    password has several advantages:
  4294.  
  4295.     - If  you  change  your password, you do not need to  edit  your  logon
  4296.       script file;
  4297.  
  4298.     - You can use the same script file with many systems, even if you use a
  4299.       different password on each;
  4300.  
  4301.     - You can share your script files without compromising  the  privacy of
  4302.       your passwords.
  4303.  
  4304.    4.7.3.3  Details on Script Learning
  4305.  
  4306.    An  auto-logon  script  file is just one example of the kinds of scripts
  4307.    BOYAN can "learn."  The procedure described above works just as well for
  4308.    learning any part  of  any  session.    For  example,  if a system has a
  4309.    cumbersome  signing-off process, you could make  BOYAN  learn  an  auto-
  4310.    logoff script.    To  invoke  that  script  later, you would use BOYAN's
  4311.    <Alt-R> "Run script  file"  command,  and  type the script's name.  (You
  4312.    could also assign a script file to a single keypress--see  section 5.3.)
  4313.    A summary of the learning procedure is on Help Screen K, the Scroll-Back
  4314.    buffer help screen.
  4315.  
  4316.    BOYAN's Learn Facility is unique in allowing you to  decide  "after  the
  4317.    fact" to go back and learn a script file.  If your scroll-back buffer is
  4318.    large enough, you can even wait  until  after you have logged off before
  4319.    learning a script, saving on connect fees and long-distance rates.
  4320.  
  4321.    BOYAN's Learn mode is also unique  in  letting you "touch up" the script
  4322.    file as it is  created,  thus sparing the need for later trial-and-error
  4323.    editing.  At the  "WaitFor"  and "Response" prompts, you have the chance
  4324.    to edit BOYAN's suggested  values  with the Line Editor.  The "Response"
  4325.    prompt, in particular, gives you a  great  deal of flexibility:  you can
  4326.    enter  not just a string to be sent over the modem, but any BOYAN  macro
  4327.    command.  For example, to make a response of control-C, type  ^C  at the
  4328.    "Response" prompt, overwriting the default response.  To make the script
  4329.    automatically send a modem break signal, append the  \SB   macro command
  4330.    after your actual (typed) response.
  4331.  
  4332.  
  4333.  
  4334.    4.7.3.3:  BOYAN Command Capabilities                                  71
  4335.    ________________________________________________________________________
  4336.  
  4337.  
  4338.  
  4339.  
  4340.    In  addition to keeping track of  the  WaitFor/Response  pairs,  BOYAN's
  4341.    Scroll-back Buffer remembers when any  of the following macros are used:
  4342.    \BB* (Beeps & Bells ON/OFF), \EC* (Echo keyboard ON/OFF), \HU (Hang Up),
  4343.    \LD* (Log to Disk ON/OFF), \PR* (Log to Printer ON/OFF), \RC (Reset text
  4344.    Color), \UF* (Usage File  logging  ON/OFF), and \ZS (Zap screen).  These
  4345.    macros are copied, with comments, into a script as it  as  learned.  You
  4346.    are  given  the chance to edit these  macro  commands  at  the  "Macro:"
  4347.    prompt.
  4348.  
  4349.    If your system has 256K of memory or  less,  or  if  you have reserved a
  4350.    large amount of memory for BOYAN's DOS Shell (in Config Area  <S>), then
  4351.    BOYAN's Scroll-Back buffer  may  not  be  very  large.  In this case, be
  4352.    especially  careful to insure that the region to  be  learned  does  not
  4353.    scroll out of the top of the buffer.
  4354.  
  4355.    4.7.4  <Alt-M> Enter Macro Manually
  4356.  
  4357.    After pressing <Alt-M> you  will  be  prompted,  "MACRO:".  Whatever you
  4358.    enter  will be instantly processed as a macro.  For example, if you type
  4359.    the macro \RE50[-], then a line  of  fifty  dashes will be sent over the
  4360.    modem.   BOYAN  remembers  the  macro you type so that the next time you
  4361.    select  <Alt-M>,  you  can reuse or edit your previous macro.  More than
  4362.    300 macro commands  and  variables  are  available;  see  chapter  5 for
  4363.    details.
  4364.  
  4365.  
  4366.    4.8  BOYAN's Host Mode
  4367.  
  4368.  
  4369.    BOYAN's main purpose is to make your computer act as a terminal, dialing
  4370.    out to connect with  other  "host" systems.  However, using BOYAN's Host
  4371.    Mode, your computer can act as a simple host, accepting calls from other
  4372.    terminals.  BOYAN allows you to maintain a database of up to 70 callers,
  4373.    each with their own password and user level.  The available  user levels
  4374.    and functions are:
  4375.  
  4376.     - User  Level  0 (New User) - View  file  directories;  view  ZIP  file
  4377.       contents; read messages; leave private comment to operator.
  4378.  
  4379.     - User  Level  1  (Normal User) -  Level  0  functions,  plus:    Enter
  4380.       messages; download and upload files in the Host directory.
  4381.  
  4382.     - User Level  2  (Sysop)  -  Level  1  functions, plus:  Kill messages;
  4383.       download and upload files to any  directory;  Jump to DOS and run any
  4384.       program remotely; Shut down Host mode.
  4385.  
  4386.  
  4387.  
  4388.    4.8.1:  BOYAN Command Capabilities                                    72
  4389.    ________________________________________________________________________
  4390.  
  4391.  
  4392.  
  4393.  
  4394.    It is simple to modify the  available  functions at each user level, add
  4395.    more  user levels, or even add new commands.  Since BOYAN's Host Mode is
  4396.    implemented as  a  script  file,  every  aspect  of its operation can be
  4397.    customized for your needs.
  4398.  
  4399.    4.8.1  Preliminaries
  4400.  
  4401.    To use BOYAN's Host, you must have a  modem  which  meets  the following
  4402.    basic conditions:
  4403.  
  4404.       1.  It can accurately report the "Carrier Detect" signal as described
  4405.           in section 2.3.2.
  4406.  
  4407.       2.  When  your phone rings, it displays the  "RING"  message  on  the
  4408.           screen.
  4409.  
  4410.       3.  When  you  establish  a  connection  at 1200 baud or greater,  it
  4411.           displays the "CONNECT xxxx" message,  where xxxx is the baud rate
  4412.           of the connection.
  4413.  
  4414.    Almost all Hayes-compatible modems will work with BOYAN's Host.
  4415.  
  4416.    The mechanics of BOYAN's Host Mode are contained in the  HOST.BSC script
  4417.    file, located in your BOYAN script directory.  The Host Mode  also makes
  4418.    use of the  HOST.BAM  Action  Module,  which allows you to configure the
  4419.    host in Config Area <A>, and enables the host's  "Local  Test"  feature.
  4420.    Finally, if you wish to run full-screen programs (like a  word processor
  4421.    or database) remotely, you must  install  Marshall  Dudley's DOORWAY.EXE
  4422.    program into your BOYAN directory.
  4423.  
  4424.    BOYAN's Host Mode can be used  in  any  of three different types of con-
  4425.    nection:  Modem, Direct, and Local Test.
  4426.  
  4427.     - A MODEM connection means that the  Host  waits for the phone to ring,
  4428.       tells the modem to answer, and hangs up  the  modem  when  the caller
  4429.       logs off.  This is the normal mode of operation.
  4430.  
  4431.     - A DIRECT connection means that the Host does not require the phone to
  4432.       ring  or  a  modem's carrier signal.    If  you  have  connected  two
  4433.       computers  with a "null modem" cable, BOYAN's  Host  in  DIRECT  mode
  4434.       provides  a   convenient  way  to  transfer  files  between  the  two
  4435.       computers.
  4436.  
  4437.     - A LOCAL TEST connection actually causes the Host not to send any data
  4438.       over the serial  port  at  all.    When  in  LOCAL TEST mode, you can
  4439.       operate the Host mode locally--to test how it works without having to
  4440.       call in from another computer.
  4441.  
  4442.  
  4443.  
  4444.    4.8.2:  BOYAN Command Capabilities                                    73
  4445.    ________________________________________________________________________
  4446.  
  4447.  
  4448.  
  4449.  
  4450.    Local  Test  mode is selected with option J in Config Area  <A>.    When
  4451.    Local Test mode is OFF, option  I  in  Config Area <A> toggles between a
  4452.    MODEM connection (YES) and a DIRECT connection (NO).  Please  refer back
  4453.    to section 3.10.3 for complete configuration instructions.
  4454.  
  4455.    4.8.2  <Alt-I> Invoking Host Mode
  4456.  
  4457.    Press the <Alt-I> key to invoke the HOST script file.  The message "Host
  4458.    Mode Invoked" will be recorded in the HOST.USE usage log.    If you have
  4459.    selected a MODEM connection,  then  BOYAN will wait for the modem's RING
  4460.    message, answer the phone, and set the modem speed based on the "CONNECT
  4461.    xxxx" message.  (Exception:  BOYAN does not wait for the RING message if
  4462.    it  detects  that  the modem is already online.)  Otherwise, if you have
  4463.    selected a DIRECT or LOCAL TEST connection, BOYAN  will  immediately act
  4464.    as a host, prompting for a name and password.
  4465.  
  4466.    4.8.3  Using the Host
  4467.  
  4468.    BOYAN's Host Mode offers much the same feel as a Bulletin  Board System.
  4469.    In the description of the Host session which follows, we'll suppose that
  4470.    someone named  Barney  has  called  your  system,  and you are the Sysop
  4471.    watching on the Host Mode end.    Note  that whenever Barney is asked to
  4472.    respond  to  a  Host Mode prompt, you (the Sysop) may "assist Barney" by
  4473.    typing his answer for him.
  4474.  
  4475.    "Welcome to BOYAN 5 Host!" greets Barney when he connects.  As prompted,
  4476.    he enters his full name and password.  If this is Barney's first call to
  4477.    the  host, he will be asked to choose a password.  BOYAN then creates  a
  4478.    new entry in the Host Mode database which looks like this:
  4479.  
  4480.         Barney Rubble;bambam;0; first called on 09/22/91 at 10:45
  4481.  
  4482.    The "0" represents the  User  Level of 0 which is automatically assigned
  4483.    to all new users.  To raise Barney's User Level to 1 (regular user) or 2
  4484.    (Sysop), you should  select  the  <L>  option from the local Sysop menu.
  4485.    Alternatively,  you  may  edit the Host user database directly in Config
  4486.    Area <A>.
  4487.  
  4488.    Having successfully logged Barney  onto  the  system, BOYAN searches the
  4489.    Host Messages directory for a file named WELCOME.MSG (use a  text editor
  4490.    to create this file).  If the  file  is  found,  BOYAN  displays  it for
  4491.    Barney.  As the message is being displayed,  he  may  press  <Ctrl-S> to
  4492.    pause the output and <Ctrl-Q> to resume it.
  4493.  
  4494.    Now,  Barney  reaches  the Boyan-Host Command Menu,  which  offers  many
  4495.    commands.   A description of each of the commands follows.  Next to each
  4496.    command  is  the minimum user level (0, 1, or 2) required  to  use  that
  4497.    command.
  4498.  
  4499.  
  4500.  
  4501.    4.8.4:  BOYAN Command Capabilities                                    74
  4502.    ________________________________________________________________________
  4503.  
  4504.  
  4505.  
  4506.  
  4507.    4.8.4  Host User Command Menu
  4508.  
  4509.     - Comment to operator (0):  Allows Barney to enter a private message to
  4510.       you.  The comments are all stored in a single file named COMMENTS.HOS
  4511.       in the Host Message directory.  The HOST.USE file records that Barney
  4512.       left a comment.  You may view the comments by selecting option <W> on
  4513.       the Sysop menu.
  4514.  
  4515.     - Download a file (1):  Transfers a file from your system  to Barney's.
  4516.       First, Barney is prompted to specify the protocol he  wishes  to  use
  4517.       for the file transfer.  Then, he is asked for the name of the file to
  4518.       download.   This is usually a single filename,  but  it  may  include
  4519.       wildcards (i.e., *.ZIP) if Barney  has selected a batch file protocol
  4520.       such as Zmodem.  If  Barney has user level 2, he may give a full path
  4521.       specifier as part  of  the  name;  at  user level 1, the file(s) must
  4522.       exist  in  the  Host  Files  directory.    Barney  is  told to  begin
  4523.       downloading;  from  your  end it looks like an upload to Barney.  The
  4524.       file transfer is recorded as an upload in the HOST.USE log.
  4525.  
  4526.     - Enter a new message (1):   Lets  Barney  type a message file that all
  4527.       callers  can  read.   The message should  be  given  a  name  of  1-8
  4528.       characters; it will  be  saved  under  that  name + a suffix of .MSG.
  4529.       Barney will be prompted to enter his message, line-by-line.  The Host
  4530.       offers "word-wrap" so Barney does not need to press  <Enter>  at  the
  4531.       end of each line.  After finishing his message  by  pressing  <Enter>
  4532.       twice, Barney may Abort, Continue, List, or Save his message.   If he
  4533.       saves the message, that information  will be recorded in the HOST.USE
  4534.       file.
  4535.  
  4536.     - File  listing  (0):    Displays  a  DIR  listing  of  the Host  Files
  4537.       directory.
  4538.  
  4539.     - Goodbye  (0):    Logs  Barney  off  from  the system.  The length  of
  4540.       Barney's  call  is recorded in the HOST.USE  file.    The  Host  Mode
  4541.       automatically "cycles" to  prepare  for  the  next caller.  Note:  if
  4542.       Barney  simply  hangs  up  the  modem without selecting G, BOYAN  can
  4543.       usually  detect  it  and  cycle  properly.  Nevertheless, it is  more
  4544.       reliable to log off with the G command.
  4545.  
  4546.     - Jump to DOS  (2):    Allows  Barney  to remotely take control of your
  4547.       computer's DOS.  If  you  do  not  have Marshall Dudley's DOORWAY.EXE
  4548.       program installed in your BOYAN directory, then Barney  will  be able
  4549.       to  execute  only  simple  DOS  programs such as TYPE, COPY,  DELETE,
  4550.       PKUNZIP,  and EDLIN.  However, if  you  have  installed  DOORWAY.EXE,
  4551.       Barney can run any program at all on your system:  spreadsheets, word
  4552.       processors,  etc.    Please see the DOORWAY  documentation  for  full
  4553.       details.    To  return from DOS to BOYAN's Host, Barney must type the
  4554.       DOS command EXIT.  The HOST.USE log notes that Barney jumped to DOS.
  4555.  
  4556.  
  4557.  
  4558.    4.8.4:  BOYAN Command Capabilities                                    75
  4559.    ________________________________________________________________________
  4560.  
  4561.  
  4562.  
  4563.  
  4564.     - Kill a message (2):  Allows Barney to delete any  of  the *.MSG files
  4565.       in the Host Message directory.
  4566.  
  4567.     - List  message  titles  (0):  Displays a listing of all *.MSG files in
  4568.       the Host Messages directory.  (The HOST.BSC script does this by first
  4569.       using DOS to create a temporary  file  with the DIR listing, and then
  4570.       ASCII-uploading this temporary file.    This  method allows Barney to
  4571.       use the <Ctrl-S>  key  to  pause  the display, and <Ctrl-Q> to resume
  4572.       it.)
  4573.  
  4574.     - New password (0):  This allows Barney to  change  his  password.   He
  4575.       must type his previous password once and his new  password  twice  to
  4576.       confirm the change.   The  HOST.USE log notes that Barney changed his
  4577.       password.
  4578.  
  4579.     - Operator page (0):  If it is not between midnight  and  8:00 am, this
  4580.       command sounds an alarm on your computer.   Press  G  to  Gossip with
  4581.       Barney  or  <space>  to give him a polite message that  you  are  not
  4582.       available to chat.  To return  Barney  to the Host Command Menu after
  4583.       chatting, type <Tab>, R.
  4584.  
  4585.     - Read a message (0):  Prompts Barney to type the name of the .MSG file
  4586.       to read, and displays it for him.
  4587.  
  4588.     - Shut down host (2):  Allows Barney to abort the HOST script remotely.
  4589.       Not only does this command log Barney out, but no further  calls will
  4590.       be answered by the host.
  4591.  
  4592.     - Upload a file (1):  Transfers  a  file from Barney's system to yours.
  4593.       The upload procedure  is  exactly analagous to the download procedure
  4594.       described  above.    Barney must have user level 2 in order to upload
  4595.       into a directory other than the Host Files directory.  In no case may
  4596.       Barney upload over a file which already exists;  to  accomplish that,
  4597.       he must first Jump to DOS and manually delete the file.
  4598.  
  4599.     - X  =  Expert  mode toggle (0):  This allows Barney  to  condense  the
  4600.       Boyan-Host command menu into a 1-line list of  the  available command
  4601.       letters, or expand it back to its normal state.
  4602.  
  4603.     - Zip file contents (0):  Prompts Barney for the name of a .ZIP file in
  4604.       the Host Files directory; then uses PKUNZIP to display its contents.
  4605.  
  4606.    4.8.5  Local Sysop Menu
  4607.  
  4608.    At  any  time  during Host Mode operation, you may press <Tab> to invoke
  4609.    the Sysop Menu.  This menu changes depending on whether the Host Mode is
  4610.    offline (waiting for the phone to ring) or online (Barney is logged on).
  4611.    While offline, the Host offers a Sysop Menu with the following options:
  4612.  
  4613.  
  4614.  
  4615.    4.8.5:  BOYAN Command Capabilities                                    76
  4616.    ________________________________________________________________________
  4617.  
  4618.  
  4619.  
  4620.  
  4621.     - <Esc>:  Aborts the Host Mode!  To resume the Host Mode from the Sysop
  4622.       Menu, use the R command instead.
  4623.  
  4624.     - File Manager:  invokes the File Manager (see section  4.6.1)  in  the
  4625.       Host Message directory.
  4626.  
  4627.     - Host Configuration:  enters  Config  Area <A>, where you can edit the
  4628.       Host  User database, the number of rings  required  before  the  Host
  4629.       answers the phone, etc. (see section 3.10.3).
  4630.  
  4631.     - Jump to DOS:  type EXIT to return to the Host.
  4632.  
  4633.     - Parameters:  lets you view/modify  the  current  modem  parameters as
  4634.       described in section 4.2.3.
  4635.  
  4636.     - Resume  Host  Mode:   escapes from the Sysop Menu back to normal Host
  4637.       Mode operation.
  4638.  
  4639.     - Scroll-back Buffer:  invokes the buffer (see section 4.7.2).  This is
  4640.       useful for looking over what the last caller did while online.
  4641.  
  4642.     - Toggle 43/50-line mode:    If  you  have an EGA monitor, this command
  4643.       will  switch your screen display between 25 lines and 43 lines.  On a
  4644.       VGA monitor, the display will switch between 25 and 50 lines.
  4645.  
  4646.     - View HOST.USE usage log:  displays the Host usage log file, detailing
  4647.       all Host Mode callers and their activities.
  4648.  
  4649.     - W =  View  COMMENTS.HOS  comments  file:    displays the file of user
  4650.       comments to the operator.
  4651.  
  4652.    If a caller (say, Barney) is online when you press  <Tab>  to invoke the
  4653.    Sysop Menu, the menu will include the following additional commands:
  4654.  
  4655.     - Cycle Host:  immediately hangs up on Barney and prepares the Host for
  4656.       the next caller.
  4657.  
  4658.     - Gossip with Barney:   this  option  switches  you into BOYAN's split-
  4659.       screen  "Gossip"  Mode  and advises Barney to do the same.  To return
  4660.       Barney to the Host Command Menu, type <Tab>, R.
  4661.  
  4662.     - L  =  Change Barney's User Level:  press L, then select  a  new  user
  4663.       level for Barney (0, 1, or 2).    Barney's  entry  in  the  Host user
  4664.       database will instantly be updated to reflect Barney's new status.
  4665.  
  4666.  
  4667.  
  4668.    4.8.6:  BOYAN Command Capabilities                                    77
  4669.    ________________________________________________________________________
  4670.  
  4671.  
  4672.  
  4673.  
  4674.    4.8.6  Customizing HOST.BSC
  4675.  
  4676.    Using BOYAN's Macro Programming Language, you can customize every aspect
  4677.    of BOYAN's Host Mode in the  HOST.BSC  script file.  The following chart
  4678.    indicates how the script allocates BOYAN's User Variables:
  4679.  
  4680.        Set automatically by the HOST Action Module:
  4681.        %V2 = number of phone rings before answering
  4682.        %V3 = MODEM if connection is over a modem,
  4683.              DIRECT if connection is direct,
  4684.              LOCAL if we're doing a local host mode test.
  4685.        %V4 = The host messages directory (where messages are saved)
  4686.        %V5 = The host files directory (for user level 1 files)
  4687.  
  4688.        Other variables used by the script:
  4689.        %VC = commands available at this user level
  4690.        %VE = extra info about caller
  4691.        %VF = caller's first name
  4692.        %VI = caller's ID number (41..110)
  4693.        %VL = caller's user Level (0=new user, 1=regular, 2=sysop)
  4694.        %VN = caller's Name
  4695.        %VO = current host status, "in-use" or "waiting"
  4696.        %VP = caller's Password
  4697.        %VR = previous Action Module
  4698.        %VU = previous usage file name
  4699.        %VX = "Expert" user mode (ON or OFF)
  4700.  
  4701.    The script  uses  the  \TV  and \TM macro commands to edit the Host user
  4702.    database, which is stored as the Host Mode's "terminal keyset."  You may
  4703.    also  access and modify the database directly in  Config  Area  <A>,  as
  4704.    described in section 3.10.3.
  4705.  
  4706.    Here are some examples of how you might customize HOST.BSC:
  4707.  
  4708.     - To enable the host to provide a new external protocol on its protocol
  4709.       menu:  following the example of the other external protocols  such as
  4710.       Zmodem and Kermit, you must add two lines to the SetProtocol block of
  4711.       the HOST.BSC script.
  4712.  
  4713.     - To change the commands available at each user  level:    look  at the
  4714.       first  few  lines  of the MENU block.  Depending on  the  user  level
  4715.       (%VL),  the  variable  %VC is set to hold a list of available command
  4716.       letters.    Simply  add or delete letters from within the appropriate
  4717.       \SVC[..] command to change the power of that user level.
  4718.  
  4719.  
  4720.  
  4721.    4.9:  BOYAN Command Capabilities                                      78
  4722.    ________________________________________________________________________
  4723.  
  4724.  
  4725.  
  4726.  
  4727.    4.9  BOYAN's Backspace Editor
  4728.  
  4729.  
  4730.    Often,  when you are typing in a line of a message, you notice an  error
  4731.    you  made  at  the beginning of the line.  Correcting  this  with  other
  4732.    communication programs  involves backspacing all the way past the error,
  4733.    then retyping the entire line the  way  it  was.  Although you may still
  4734.    use  this  method if you like, BOYAN provides a much easier  way.    The
  4735.    following commands are effective whenever you are in terminal mode:
  4736.  
  4737.    4.9.1  <Backspace> Erase Previous Character
  4738.  
  4739.    As  usual,  the  <backspace>  key  erases the previous character on  the
  4740.    screen.  BOYAN automatically stores this character in memory.
  4741.  
  4742.    4.9.2  <LeftArrow> Forget Previous Character
  4743.  
  4744.    Pressing  the  <LeftArrow>  key while in  terminal  mode  also  sends  a
  4745.    backspace  signal over the modem.  However, BOYAN  does  not  store  the
  4746.    character in memory.
  4747.  
  4748.    4.9.3  <Ctrl-Backspace> Erase Previous Word
  4749.  
  4750.    To erase the previous word typed on the current line, at any time, press
  4751.    <Ctrl-Backspace>.  BOYAN  simply  sends backspace signals over the modem
  4752.    until it reaches a space.  The erased word is stored in BOYAN's memory.
  4753.  
  4754.    4.9.4  <Ctrl-LeftArrow> Forget Previous Word
  4755.  
  4756.    The <Ctrl-LeftArrow> command also sends  backspace  characters  to erase
  4757.    the previous word.  However, BOYAN does not store the word in memory.
  4758.  
  4759.    4.9.5  <RightArrow> Un-erase Character
  4760.  
  4761.    Press <RightArrow> to recall the most recent character stored in BOYAN's
  4762.    backspace  memory.    In  other  words, the <RightArrow> key undoes  the
  4763.    effect of the <Backspace> or <Ctrl-Backspace> commands.
  4764.  
  4765.    4.9.6  <Ctrl-RightArrow> Un-erase Word
  4766.  
  4767.    Press <Ctrl-RightArrow> to recall all  characters  in  BOYAN's backspace
  4768.    memory up to  a  space.    This  command  also  undoes the effect of the
  4769.    <BackSpace> and <Ctrl-Backspace> commands.
  4770.  
  4771.    4.9.7  Using the Backspace Editor
  4772.  
  4773.    Suppose you type the following line to the modem:
  4774.  
  4775.         I have used the BOYA Communications program _
  4776.  
  4777.  
  4778.  
  4779.    4.9.7:  BOYAN Command Capabilities                                    79
  4780.    ________________________________________________________________________
  4781.  
  4782.  
  4783.  
  4784.  
  4785.    (Your cursor is where the  _  is.)  You then realize that  you  left out
  4786.    the  N   in  BOYAN.    To  fix  it  with  the  Backspace Editor, use any
  4787.    combination of the <Backspace> and <Ctrl-Backspace> commands to position
  4788.    the cursor on the space where you want the   N  .    Press  N.  The line
  4789.    should read:
  4790.  
  4791.         I have used the BOYAN_
  4792.  
  4793.    Now use the <RightArrow>  and  <Ctrl-RightArrow>  commands to recall the
  4794.    erased part of the line.
  4795.  
  4796.    Suppose you wish to change the phrase "I have used" to "I use".  Use the
  4797.    <Ctrl-Backspace> and  <Backspace> commands to position the cursor to the
  4798.    right of the "d" in "used".  Then press the <LeftArrow> key to backspace
  4799.    over  the  "d".   The <LeftArrow> key backspaces without remembering the
  4800.    erased character.  Press <Ctrl-Backspace> to back past  the  word "use",
  4801.    then press <Ctrl-LeftArrow> to delete the word "have".  Finally, use the
  4802.    <RightArrow> and <Ctrl-RightArrow> commands to pull back the rest of the
  4803.    line:
  4804.  
  4805.         I use the BOYAN Communications program _
  4806.  
  4807.    Once  you get used to the Backspace Editor, you will find that you never
  4808.    post messages with typos again!
  4809.  
  4810.  
  4811.  
  4812.  
  4813.  
  4814.  
  4815.  
  4816.  
  4817.  
  4818.  
  4819.  
  4820.  
  4821.  
  4822.  
  4823.  
  4824.                                   Chapter 5
  4825.  
  4826.                      BOYAN Power--Macros and Script Files
  4827.  
  4828.  
  4829.    5.1  Overview
  4830.  
  4831.  
  4832.    A macro is a sequence of commands which instructs BOYAN to  perform some
  4833.    action.  Beneath the  "surface"  of BOYAN which you normally see, macros
  4834.    are responsible for a variety of tasks--for instance, dialing the modem,
  4835.    handling your  keyboard  commands,  and  maintaining  the  activity log.
  4836.    Because all these macros are user-programmable, you have a great deal of
  4837.    power  in  determining  what BOYAN does, and when and how  it  does  it.
  4838.    BOYAN's  Macro  Programming  Language is described in section 5.2.  Many
  4839.    useful sample macros are presented in section 5.3.
  4840.  
  4841.    To automate even the most  complex communication tasks, BOYAN allows you
  4842.    to link many macros together into text files called "scripts."  Although
  4843.    BOYAN  can create simple scripts automatically  with  the  Script  Learn
  4844.    facility (section 4.7.3), you  can  write much more powerful scripts.  A
  4845.    script file could take control of your computer at a  pre-assigned time,
  4846.    dial into a database, perform a search, and print the  results--all with
  4847.    nobody  at  the  keyboard.  BOYAN's Host Mode is written completely as a
  4848.    script file.   Still  another  application  for script files might be to
  4849.    create  a  customized  front-end  menu  interface  for  all  of  BOYAN's
  4850.    commands.  BOYAN scripts are explained in section 5.5.
  4851.  
  4852.  
  4853.    5.2  The Macro Programming Language
  4854.  
  4855.  
  4856.    Most macro/script commands  consist  of a backslash plus two characters;
  4857.    for  example,  \zs  is the command to "zap" (clear) the  screen.    Many
  4858.    commands also require further information enclosed  in  square brackets;
  4859.    for  example,  \di[730-2917]  is the command to dial the specified phone
  4860.    number.  A macro is a sequence  of  one  or  more  commands,  all strung
  4861.    together on a  line  of  text.    Thus the macro \zs \di[730-2917] would
  4862.    instruct BOYAN  to  first  clear  the  screen,  and then dial the modem.
  4863.    Spaces may be placed between  commands to make the macro easier to read.
  4864.  
  4865.  
  4866.  
  4867.    5.2:  BOYAN Power--Macros and Script Files                            81
  4868.    ________________________________________________________________________
  4869.  
  4870.  
  4871.  
  4872.  
  4873.    The Macro Programming Language also provides approximately 100 variables
  4874.    which can be  included  in  any  command.   Variables are specified by a
  4875.    percent  sign  plus  two  characters;  for example, %XP  represents  the
  4876.    current X-position of the cursor.  Wherever a BOYAN variable is found in
  4877.    a  macro, it is replaced by its current value.  (A variable may also  be
  4878.    specified  with  an  @-sign,  e.g.,  @XP  instead of %XP.  The technical
  4879.    difference between % and @ is explained in section 5.5.6.2.)
  4880.  
  4881.    The  next  several  sections explain the many variables and commands you
  4882.    can use to automate BOYAN.  The commands and variables have been divided
  4883.    into categories such as String  Output,  Dialing,  File  Transfers, User
  4884.    Variables, and Script-specific commands.    Note  that  there is also an
  4885.    alphabetical summary of all  macro  commands and variables at the end of
  4886.    this chapter.
  4887.  
  4888.    5.2.1  String Output
  4889.  
  4890.    Any macro can include a string of text like "password".    Such a string
  4891.    is sent directly over the modem.  Eight characters--the caret, quotation
  4892.    mark, backquote, tilde, left curly  brace,  percent  sign,  at-sign, and
  4893.    backslash--have  special meanings and are not  sent  directly  over  the
  4894.    modem  unless  they  are  preceded  by  a  quotation  mark.  The special
  4895.    meanings of these  characters  are  described  in  section  3.9.1.   The
  4896.    following example demonstrates some basic commands:
  4897.  
  4898.       ATZ{~```\$```WELCOME CLASS OF "`99{
  4899.  
  4900.    The example sends ATZ <Enter> to the modem, and then pauses for one-half
  4901.    second  (~).  The backquotes are for spacing  and  the  macro  processor
  4902.    ignores  them.    The  \$  command  causes  Shortcut  macro  #114 to  be
  4903.    processed.   Finally, the phrase WELCOME CLASS OF `99  is  sent  to  the
  4904.    modem,  where  the  quotation  mark  signifies that the  character  that
  4905.    follows, the backquote, should be sent over the modem, not  ignored like
  4906.    the other backquotes.
  4907.  
  4908.    5.2.2  How to Read the Macro Definitions
  4909.  
  4910.    In the command format descriptions, the following conventions are used:
  4911.  
  4912.    c                represents a single character, like  Y
  4913.  
  4914.    x, y, or z       represents an integer number, like  12.  Numbers may be
  4915.                     specified in hexadecimal if  they  are  preceded by a $
  4916.                     sign, like $1B.
  4917.  
  4918.    filename         represents  a full filename specifier, such as  FOO.ZIP
  4919.                     or C:\MODEM\FILES\BOYAN.DOC.
  4920.  
  4921.  
  4922.  
  4923.    5.2.2:  BOYAN Power--Macros and Script Files                          82
  4924.    ________________________________________________________________________
  4925.  
  4926.  
  4927.  
  4928.  
  4929.    string           represents a string of characters not  to  be processed
  4930.                     as a macro, like  WELCOME!
  4931.  
  4932.    macro            represents an executable macro, like  \DI[730-2917]
  4933.  
  4934.    5.2.2.1  Conditional Macro Syntax
  4935.  
  4936.    Conditional  macro  commands  allow your macros to make decisions.  With
  4937.    each conditional command, you enclose a macro in brackets which is to be
  4938.    executed  only  if the condition is met.    For  example,  the  \CA+[..]
  4939.    conditional macro tests whether there is a carrier signal.  The macro:
  4940.  
  4941.         \CA+[\ST[You are online.]]
  4942.  
  4943.    displays the Status message "You are online" only if there is a carrier.
  4944.    If there is no carrier, then the macro has no effect.
  4945.  
  4946.    If-then-else decisions may  be  programmed by placing the special string
  4947.    |ELSE inside the  enclosed  macro.    You  may abbreviate the |ELSE by a
  4948.    single vertical bar |.  The part of the macro beyond the |ELSE string is
  4949.    executed only if the condition was NOT met.  For example, the macro:
  4950.  
  4951.         \CA+[\ST[You are online.] |ELSE \ST[You are offline.]]
  4952.  
  4953.    displays "You are online" if the carrier signal is detected, or "You are
  4954.    offline" if no carrier is present.  The identical effect can be achieved
  4955.    using the complementary \CA-[..] macro:
  4956.  
  4957.         \CA-[\ST[You are offline.] |ELSE \ST[You are online.]]
  4958.  
  4959.                                *    *    *    *
  4960.  
  4961.    Each macro command and variable below is presented with  its  format  on
  4962.    the  left,  an example on the right,  and  a  mnemonic  and  description
  4963.    following.
  4964.  
  4965.    5.2.3  Modem Commands
  4966.  
  4967.    ^c                                                                    ^[
  4968.    Sends the specified control  character;  e.g., ^X sends a control-X;  ^[
  4969.    sends the <Escape> character.  Note that ^M, which sends a <Return>, can
  4970.    also be represented as { in a BOYAN macro.
  4971.  
  4972.    \CA+[macro]           \CA+[\DM[You have connected!]|\DM[No connection.]]
  4973.    \CA-[macro]                                                \CA-[ATS0=0{]
  4974.    CArrier?  The \CA+ command processes the enclosed macro  only  if  BOYAN
  4975.    detects carrier, that is, if the modem is currently connected.  The \CA-
  4976.    command processes its macro only if BOYAN does not detect carrier.
  4977.  
  4978.  
  4979.  
  4980.    5.2.3:  BOYAN Power--Macros and Script Files                          83
  4981.    ________________________________________________________________________
  4982.  
  4983.  
  4984.  
  4985.  
  4986.    \CH[x]                                                          \CH[127]
  4987.    CHaracter.   Sends the ASCII character with code  x  (0..255)  over  the
  4988.    modem.    For  example, ASCII 127  represents  the  "Del"  key  on  many
  4989.    terminals, so \CH[127]  would  simulate pressing "Del."  ASCII character
  4990.    27 is "Escape", so \CH[27] has the same effect as ^[.
  4991.  
  4992.    \CM
  4993.    Change Modem parameters.  This macro calls up  a  menu,  from  which the
  4994.    user can change the modem device, speed, or parity.
  4995.  
  4996.    \CD[x]                                                            \CD[2]
  4997.    %MD   %MA   %MN                                                2  3E8  4
  4998.    Change Device (serial port).  The \CD macro changes  the  current  modem
  4999.    device  to  port  1, 2, 3, or 4, and resets that port.  The %MD variable
  5000.    holds the number of the current Modem Device (1..4).  Variable %MA holds
  5001.    the memory address of the port in hexadecimal (without the $  sign), and
  5002.    %MN holds the IRQ Interrupt line used by the port (2, 3, 4, or 5).
  5003.  
  5004.    \CS[x]                                                            \CS[1]
  5005.    %MS   %MM                                                           1200
  5006.    Change  Speed.  This changes the current modem  speed  setting  to  300,
  5007.    1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115K  baud depending on
  5008.    whether   x  is  3, 1, 2, 4, 9, 0, or 8.  You  may  also  use  the  full
  5009.    number  if you wish, like \CS[19200].  %MS holds the current baud  rate,
  5010.    and %MM  holds the Maximum Modem speed as configured in Config Area <S>.
  5011.  
  5012.    \CP[c]                                                            \CP[E]
  5013.    %MP                                                                    E
  5014.    Change Parity.  This  changes  the current modem parity setting to None,
  5015.    Even,  or Odd depending on whether  c  is N, E, or O.   You may use  the
  5016.    full word if you wish, like    \CP[Even].   %MP stores the current Modem
  5017.    Parity--N, E, or O (not the full word).
  5018.  
  5019.    \DD+   \DD-   \DD*
  5020.    Drop  DTR.  \DD+ causes the DTR signal to be Dropped upon changing ports
  5021.    or exiting BOYAN,  in  effect  hanging  up  the modem.  \DD- makes BOYAN
  5022.    maintain the DTR signal when exiting.  \DD* toggles between the two.
  5023.  
  5024.    \DT+   \DT-   \DT*                                            \DT-~~\DT+
  5025.    DTR.   Use \DT+ to turn the Data Terminal Ready signal ON, \DT- to  turn
  5026.    DTR OFF, or \DT* to toggle its state.  Turning DTR  off  for  one second
  5027.    usually makes the modem hang up.
  5028.  
  5029.    \HU
  5030.    Hang Up.  This hangs up the modem by running BOYAN macro #4.
  5031.  
  5032.    \PL
  5033.    Purge Line.  This purges the data line of all incoming characters; i.e.,
  5034.    ignore all incoming characters until the receive buffer is empty.
  5035.  
  5036.  
  5037.  
  5038.    5.2.4:  BOYAN Power--Macros and Script Files                          84
  5039.    ________________________________________________________________________
  5040.  
  5041.  
  5042.  
  5043.  
  5044.    \SB
  5045.    Send Break.  This sends a modem break signal.
  5046.  
  5047.    5.2.4  Terminal Characteristics
  5048.  
  5049.    \AM[]
  5050.    \AM[c]                                                            \AM[G]
  5051.    Action  Module.   If the space between  the  brackets  is  empty,  BOYAN
  5052.    provides  a menu from which you can select a new Action Module.  If  you
  5053.    include a character between  the  brackets,  BOYAN  attempts to load the
  5054.    Action  Module corresponding to that character: [1]=VT-100,  [G]=GOSSIP,
  5055.    etc.
  5056.  
  5057.    %AM                                                                    G
  5058.    Action Module.  The  letter  or digit corresponding to the current BOYAN
  5059.    Action Module in use.
  5060.  
  5061.    %AN                                                               GOSSIP
  5062.    Action module Name.  The full name of the current BOYAN Action Module.
  5063.  
  5064.    %AP                                                                    1
  5065.    Action  module (Previous).  The letter or  digit  corresponding  to  the
  5066.    previous  BOYAN  Action  Module in use; that is, the module which was in
  5067.    use  before  the  current  one  was  selected.    For example, the macro
  5068.    \AM[%AP]  would  instruct  BOYAN  to  switch back to the previous action
  5069.    module.
  5070.  
  5071.    \B8+   \B8-   \B8*   %B8
  5072.    Bit 8.  The \B8 command controls whether  or  not  BOYAN  recognizes the
  5073.    eighth  (high)  bit  of incoming characters.  \B8+ makes BOYAN recognize
  5074.    the eighth  bit,  allowing  IBM  graphics  characters  to be seen.  \B8-
  5075.    causes BOYAN to strip the eighth bit, converting IBM graphics characters
  5076.    to their regular 7-bit  ASCII  equivalents.  \B8* toggles back and forth
  5077.    between  the  two  states.  The %B8 variable equals "ON" when the eighth
  5078.    bit is allowed, or "OFF" when the eighth bit is stripped.
  5079.  
  5080.    \BD+   \BD-   \BD*   %BD
  5081.    Backspace/Del swap.  Certain terminal  emulation BAMs such as VT-100 and
  5082.    IBM-3101 offer an option to swap  the  Backspace  and Del keys.  When in
  5083.    such  a  BAM,  you may use the \BD+ macro to  swap  the  keys,  \BD-  to
  5084.    "unswap" the keys, \BD* to toggle between \BD+  and  \BD-,  and  the %BD
  5085.    variable to reflect whether  BS  and Del are currently swapped ("ON") or
  5086.    normal ("OFF").
  5087.  
  5088.    \BU+   \BU-   \BU*   %BU
  5089.    BUffering.  You must have the National Semiconductor  16550AN  UART chip
  5090.    to use this command.  The 16550AN provides FIFO  buffering  of  received
  5091.    modem  text,  which  makes high-speed downloads reliable  even  under  a
  5092.    multitasking or network  environment.   The \BU+ command initializes the
  5093.  
  5094.  
  5095.  
  5096.    5.2.4:  BOYAN Power--Macros and Script Files                          85
  5097.    ________________________________________________________________________
  5098.  
  5099.  
  5100.  
  5101.  
  5102.    FIFO  buffer  to its maximum size of  14  bytes,  and  modifies  BOYAN's
  5103.    interrupt processing routine appropriately.  \BU-  disables  the buffer,
  5104.    and \BU* toggles.  Technical note:  when you shell to DOS or exit BOYAN,
  5105.    FIFO  buffering  is restored to the state it was in upon entering BOYAN.
  5106.  
  5107.    \CT+   \CT-   \CT*
  5108.    CTS/RTS.  Use \CT+ to turn  CTS/RTS  hardware  flow control ON,  \CT- to
  5109.    turn  CTS/RTS  flow control OFF, and \CT*  to  toggle  between  the  two
  5110.    settings.
  5111.  
  5112.    \EC+   \EC-   \EC*   %EC
  5113.    ECho.   \EC+  turns  local  echo ON, \EC- turns local echo OFF, and \EC*
  5114.    toggles  back and forth between the two.  The %EC variable can always be
  5115.    used to determine the current state  of  echo  mode:  %EC equals "ON" or
  5116.    "OFF".
  5117.  
  5118.    \LF+   \LF-   \LF*   %LF
  5119.    Line Feeds.  \LF+ turns add  line  feeds  mode ON, \LF- turns line feeds
  5120.    OFF, and \LF* toggles between the two.  %LF maintains the  current state
  5121.    of the toggle, "ON" or "OFF".
  5122.  
  5123.    \TT+   \TT-   \TT*   %TT
  5124.    Translation  Table.  \TT+ turns the table ON;  \TT- turns it OFF;   \TT*
  5125.    toggles it.   The  %TT  variable  reflects  whether the table is "ON" or
  5126.    "OFF".
  5127.  
  5128.    \XX+   \XX-   \XX*
  5129.    Xon/Xoff.   Use \XX+ to turn Xon/Xoff software flow control ON,  \XX- to
  5130.    turn Xon/Xoff control OFF, and \XX* to toggle between the two settings.
  5131.  
  5132.    5.2.5  Backspace Buffer
  5133.  
  5134.    \BC
  5135.    Back destructively over Character.  This command is identical to sending
  5136.    a backspace (^H), except  the  deleted character is not added to BOYAN's
  5137.    backspace buffer.
  5138.  
  5139.    \BW+   \BW-
  5140.    Back over Word.  This sends backspaces until a space  is  reached.  \BW+
  5141.    saves the erased word in the backspace buffer; \BW- does not.
  5142.  
  5143.    \FC
  5144.    Forward Character.  This  sends  the most recent character stored in the
  5145.    backspace buffer.
  5146.  
  5147.    \FW
  5148.    Forward Word.  This  sends  characters from the backspace buffer until a
  5149.    space is reached.
  5150.  
  5151.  
  5152.  
  5153.    5.2.6:  BOYAN Power--Macros and Script Files                          86
  5154.    ________________________________________________________________________
  5155.  
  5156.  
  5157.  
  5158.  
  5159.    5.2.6  Timing
  5160.  
  5161.    ~    (tilde)
  5162.    BOYAN pauses  for approximately 0.5 seconds whenever the tilde character
  5163.    is found in a macro.  For long pauses, \PA[x] is a better alternative.
  5164.  
  5165.    %HR   %MI   %SE                                             18   09   59
  5166.    HouR,  MInute,  SEcond.   These variables hold the current hour, minute,
  5167.    and second, respectively.  Each is exactly two digits long.  The hour is
  5168.    given in 24-hour notation:  i.e., at six o'clock PM,  %HR  equals 18; at
  5169.    midnight, %HR equals 00.
  5170.  
  5171.    %MO   %DA   %YR                                             09   03   92
  5172.    MOnth, DAy, YeaR.  Each of these variables is exactly two digits long.
  5173.  
  5174.    \PA[x]                                                           \PA[20]
  5175.    PAuse.  This makes BOYAN pause for x (1..32767) seconds.    See also the
  5176.    \AL macro  command,  which  sounds  an  alarm  for a specified number of
  5177.    seconds (section 5.2.10).
  5178.  
  5179.    \PU[##:##]                                                     \PU[2:30]
  5180.    Pause Until.   Make  BOYAN  pause  until  the specified time.  The above
  5181.    example would make BOYAN wait until 2:30 AM before continuing.   Use 24-
  5182.    hour notation to specify  times  after  noon;  e.g., \PU[14:30] to pause
  5183.    until 2:30 PM.  Note that midnight = 0:00.
  5184.  
  5185.    \SL[x]                                                            \SL[0]
  5186.    Set  Line pacing to x (0..255) milliseconds.  This is the amount of time
  5187.    BOYAN will pause after sending a Carriage Return  in  a  macro  or ASCII
  5188.    upload, in addition to the character pacing time.
  5189.  
  5190.    \SP[x]                                                           \SP[10]
  5191.    Set Pacing.  This sets character pacing to x (0..255)  milliseconds, the
  5192.    amount  of time BOYAN will pause between sending  each  character  in  a
  5193.    macro or ASCII upload.
  5194.  
  5195.    \UT##:##[macro]                              \UT`20:00[\DM[%HR:%MI:%SE]]
  5196.    Until Time.  Until the  specified time (24-hour format), this repeatedly
  5197.    executes the enclosed macro.  The above example would display  a running
  5198.    clock on the screen until 20:00 (8:00 PM).
  5199.  
  5200.    5.2.7  Handshaking
  5201.  
  5202.    \IF+string[macro]                       \IF+End of messages[\GB[LogOff]]
  5203.    \IF-string[macro]                  \IF-File not found[\DLk[twiddle.arc]]
  5204.    If Found?  The \IF+ command processes the  enclosed  macro  only  if the
  5205.    specified  string  is  found  on  the  current  screen  line or the line
  5206.    immediately above the cursor.  The \IF- command processes its macro only
  5207.    if the string is not on the current line or line above.  The matching is
  5208.  
  5209.  
  5210.  
  5211.    5.2.7:  BOYAN Power--Macros and Script Files                          87
  5212.    ________________________________________________________________________
  5213.  
  5214.  
  5215.  
  5216.  
  5217.    not case-sensitive.  Once a given string on the screen is matched, it is
  5218.    highlighted  and will not be matched again.  See the related \WF and \UN
  5219.    commands.
  5220.  
  5221.    \IW+[macro]                                \IW+[\DM[Log-on successful!]]
  5222.    \IW-[macro]                      \IW-[\DM[Log-on interrupted.]\GB[quit]]
  5223.    If  Waitfor  successful?   The \IW+ command processes the enclosed macro
  5224.    only If the last WaitFor, UNtil, or IF command was successful.  The \IW-
  5225.    command processes the enclosed macro only if the last such command timed
  5226.    out before successfully making a match.
  5227.  
  5228.    \TO[x]                                                           \TO[40]
  5229.    TimeOut.   Set the handshake timeout to x (0..255) seconds.  This is the
  5230.    amount of time BOYAN waits before "giving up" trying to  match  a \WF or
  5231.    \WL  command.  If x is 255, then it means "indefinitely":  \TO[255] sets
  5232.    an indefinite timeout, and BOYAN will never give up waiting for a match!
  5233.  
  5234.    \UNstring[macro]                                     \UN`End of file[^K]
  5235.    UNtil.   This repeatedly executes the macro  enclosed  in  the  brackets
  5236.    until the specified string arrives from the modem.   The  above  example
  5237.    sends a continuous stream of control-K characters until  BOYAN  sees the
  5238.    "End of file"  message.
  5239.  
  5240.    \WF[]                                                              \WF[]
  5241.    \WF[string]                           \WF[Enter your name:]John Johnson{
  5242.    Wait For the specified string to arrive from the modem.    If 30 seconds
  5243.    (or  whatever value you configure or set with the  \TO  command) elapses
  5244.    before the string appears, the macro times out and will continue  to the
  5245.    next command.  The string is  not  case-sensitive,  so  NAME  will match
  5246.    NaMe .   If  the  brackets  are  empty,  BOYAN  will simply wait for any
  5247.    character.  While  BOYAN  is  waiting,  if you press <space>, BOYAN will
  5248.    assume the matching was unsuccessful and continue to  the  next command.
  5249.    (Pressing <Esc> always aborts the entire macro/script.)  You can use the
  5250.    \IW  command to test for the success  of  the  waitfor  (section 5.2.7).
  5251.    See also the \UN (until) and \IF (if found) commands.
  5252.  
  5253.    \WL                                                                  \WL
  5254.    Wait for a new Line (carriage return) from the modem.
  5255.  
  5256.    \WP[x]                                                           \WP[2]{
  5257.    Wait  for Pause.  This command instructs BOYAN to Wait for a Pause of  x
  5258.    seconds in the remote  system's  input.  Suppose you execute the command
  5259.    \WP[2].  As long as input continues to flow in from the modem, the macro
  5260.    will  simply  wait.    However,  when  there is a pause in the  flow  of
  5261.    input--in this case, two seconds during which nothing  new  arrives from
  5262.    the modem--the \WP[2] command will  finish, and the macro processor will
  5263.    continue on to the next command.  In effect, \WP[2] makes BOYAN wait for
  5264.    the next prompt for input!  See the TCOMM.BSC script for details.
  5265.  
  5266.  
  5267.  
  5268.    5.2.8:  BOYAN Power--Macros and Script Files                          88
  5269.    ________________________________________________________________________
  5270.  
  5271.  
  5272.  
  5273.  
  5274.    5.2.8  Dialing
  5275.  
  5276.    \AD+   \AD-   \AD*
  5277.    Auto-Detect.  Use \AD+ to turn auto-detection of the modem connect speed
  5278.    ON,  \AD- to turn Auto-Detection  OFF,  and   \AD* to toggle between the
  5279.    two.  This feature is explained in section 3.8.
  5280.  
  5281.    \CC+   \CC-   \CC*
  5282.    Carrier Checking.  \CC+ enables BOYAN's carrier checking before dialing.
  5283.    With carrier checking enabled,  BOYAN  will prompt you to verify that it
  5284.    is "OK  to  dial  despite  carrier" if you try to dial while already on-
  5285.    line.  \CC- disables carrier checking; \CC* toggles.
  5286.  
  5287.    \CO[x]                                                           \CO[60]
  5288.    COnnect timeout.  Set the COnnect wait time to x seconds (0..99).  After
  5289.    dialing with <Alt-D>, BOYAN will assume that no connection has been made
  5290.    if the modem fails to respond within this amount of time.
  5291.  
  5292.    \DI[]                                                              \DI[]
  5293.    \DI[x]                                                           \DI[12]
  5294.    \DI[string]                                              \DI[Compuserve]
  5295.    \DI[###-####]                                              \DI[381-6441]
  5296.    DIal.    If the brackets are empty,  \DI[]  simply  enters  the  dialing
  5297.    directory.  If a number from  1-200  is enclosed, this command dials the
  5298.    system  with  the  specified  dialing  directory  code;  if you  make  a
  5299.    connection, the appropriate automatic logon script will also be run (see
  5300.    section 5.5.2).  If a string is enclosed, BOYAN will search your dialing
  5301.    directory for an  entry  whose  name  contains that string, and dial the
  5302.    first such entry it finds.    (This  may  be  preferable  to  giving the
  5303.    precise  code  number,  since  the  code  may  change  if  you sort  the
  5304.    directory.)  Finally, if  the  string does not match any directory entry
  5305.    name, BOYAN attempts to manually dial the enclosed string.
  5306.  
  5307.    %F:                                                        C:\BOYAN\FON\
  5308.    Fon  path.   This variable stores the name of the path  in  which  BOYAN
  5309.    expects to find all its FON directories.  To reconfigure this  path, see
  5310.    section 3.6.
  5311.  
  5312.    \FD[filename]                                           \FD[CHICAGO.FON]
  5313.    %FD                                                          CHICAGO.FON
  5314.    Fon  Directory.   The \FD macro command  loads  the  specified  new  Fon
  5315.    Directory.  The filename suffix of  .FON  is  optional.  If the file you
  5316.    specify is not a valid BOYAN directory, the previous .FON directory will
  5317.    be  reloaded.  The name of the current FON directory is always stored in
  5318.    the %FD variable.
  5319.  
  5320.  
  5321.  
  5322.    5.2.8:  BOYAN Power--Macros and Script Files                          89
  5323.    ________________________________________________________________________
  5324.  
  5325.  
  5326.  
  5327.  
  5328.    \IS+x,y,..,z[macro]              \IS+1,6,114,0,3,30[password1|password2]
  5329.    \IS-x,y,..,z[macro]                      \IS-0[\DM[Phone number = %SF.]]
  5330.    Is  System?    The \IS+ command processes the enclosed macro only If the
  5331.    directory  code of the System you last dialed is on the list of numbers.
  5332.    The \IS- command processes its macro when the last-dialed system  is not
  5333.    on the code list.   The  codes  run  from  1-200  for  dialing directory
  5334.    entries, and 0 for manual dialing.  This command is convenient when, for
  5335.    example, you use different passwords on otherwise-identical systems, and
  5336.    need to select a password based on which system you connected to.
  5337.  
  5338.    %PW                                                               ibm-pc
  5339.    %S#                                                                   12
  5340.    %SF                                                       1-301-854-3076
  5341.    %SN                                                    BOYAN Support BBS
  5342.    %SS                                                              PCBOARD
  5343.    %SL                                                              0:15:30
  5344.    System information.   These  six variables contain information about the
  5345.    system  which  is  currently online.  If you are online  with  a  system
  5346.    dialed from the dialing directory:  %PW equals its password;  %S# equals
  5347.    its code number  (1-200);  %SF  equals  its phone number; %SN equals its
  5348.    Name; %SS equals the name of its logon  script  file  (without  the .BSC
  5349.    suffix);  and %SL is the total elapsed time  since  the  connection  was
  5350.    made.  These values can be used in Auto-macros #6  and  #7, for example,
  5351.    to update the BOYAN.USE activity log.  When you are offline,  %PW equals
  5352.    the default value set in Config  Area  <S>;  %S# equals 0, the %SL clock
  5353.    keeps running, and the other variables are blank.
  5354.  
  5355.    5.2.9  Queue Redialing
  5356.  
  5357.    \QA[x]                                                           \QA[12]
  5358.    \QA[###-####]                                              \QA[381-6441]
  5359.    \QA[string]                                           \QA[Boyan Support]
  5360.    \QA+[string]                                         \QA+[Boyan Support]
  5361.    Queue Add.  If a number  from  1-200  is enclosed, this command adds the
  5362.    system with the specified dialing directory code to the redialing queue.
  5363.    Otherwise, BOYAN searches the dialing  directory for an entry whose name
  5364.    contains string, and adds that entry to the  Queue.    If  a + is placed
  5365.    before the left bracket, then all matching entries will be added  to the
  5366.    queue; with no +, only the first matching entry is added.  If the string
  5367.    in brackets  is  not  an  entry name but a phone number, then BOYAN will
  5368.    simply add that number to the queue.
  5369.  
  5370.    \QA-[x]                                                         \QA-[12]
  5371.    \QA-[string]                                                   \QA-[%SN]
  5372.    Queue  Subtract.   If a number from  1-200  is  enclosed,  this  command
  5373.    deletes  the entry with that code number from the redialing queue.  If a
  5374.    string is enclosed,  then  all  queue  entries  whose  names  are "close
  5375.    enough" to that string are removed  from  the  queue.  To BOYAN, a queue
  5376.    name is  "close  enough"  to  the  specified  string if that string, not
  5377.  
  5378.  
  5379.  
  5380.    5.2.9:  BOYAN Power--Macros and Script Files                          90
  5381.    ________________________________________________________________________
  5382.  
  5383.  
  5384.  
  5385.  
  5386.    including its last character,  is  contained as a substring of the queue
  5387.    name.  For example,  the  command \QA-[BOYAN Support Line 2] will delete
  5388.    queue entries named BOYAN  Support  Line 1  and  BOYAN Support Line 3 as
  5389.    well  as BOYAN Support Line 2.  If you insert the command \QA-[%SN] into
  5390.    Auto-macro  #6, then after connecting to a  system,  all  other  systems
  5391.    whose  names  are  "close enough" will automatically be deleted from the
  5392.    queue.
  5393.  
  5394.    \QC
  5395.    Queue Clear.  Clear the queue of all entries.
  5396.  
  5397.    \QD
  5398.    Queue Dial.  This makes BOYAN  repeatedly  dial the numbers in the queue
  5399.    until a connection is made.  When BOYAN connects, it removes that number
  5400.    from the queue and rings the connect alarm.  If the connected system has
  5401.    a logon script specified  in  its  Dialing  Directory entry, BOYAN stops
  5402.    ringing the alarm after the "Script Keyboard Timeout"  has  expired, and
  5403.    runs the script's LOGON block as described in  section  5.5.2.    If the
  5404.    queue is empty, this command does nothing.
  5405.  
  5406.    \QE
  5407.    Queue Enter.  The \QE command causes BOYAN to enter the  redialing queue
  5408.    and wait for user key commands.
  5409.  
  5410.    %QS                                                 \IE+%QS,0[\EX | \QD]
  5411.    Queue Size.  The number of  entries  in  the Queue (0..20).  The example
  5412.    macro  will  exit  BOYAN if the queue is empty, or begin queue redialing
  5413.    otherwise.
  5414.  
  5415.    \QU[##:##]                                                     \QU[6:15]
  5416.    Queue Until.  This command is identical to the \QD command,  except that
  5417.    redialing will stop at the specified time if no connection has been made
  5418.    yet.  Use 24-hour notation, e.g., \QU[23] to redial until 11:00 pm.  See
  5419.    section  5.3.2  for an example of how to use this command  in  an  Auto-
  5420.    macro.
  5421.  
  5422.    5.2.10  Screen & Sound
  5423.  
  5424.    \ALx[y]                                                          \AL1[5]
  5425.    \ALx[0]                                                          \AL3[0]
  5426.    \ALx[]                                                            \AL2[]
  5427.    ALarm.  BOYAN provides three alarms: alarm #1 is a constant  tone; alarm
  5428.    #2 is a two-tone "ringing"; and  alarm  #3  is a descending squawk.  The
  5429.    pitch of the alarm is controlled by the alarm  volume  setting  (below).
  5430.    The \ALx command rings alarm # x (1, 2, or 3).  The number y (0..255) in
  5431.    brackets determines the  length of the alarm in seconds.  If y is 0, the
  5432.    alarm tone sounds just once, and stops.  If the brackets are left empty,
  5433.    then the alarm will ring continuously until the user presses a key.
  5434.  
  5435.  
  5436.  
  5437.    5.2.10:  BOYAN Power--Macros and Script Files                         91
  5438.    ________________________________________________________________________
  5439.  
  5440.  
  5441.  
  5442.  
  5443.    \AV[x]                                                            \AV[4]
  5444.    Alarm  Volume.   Change the alarm volume from 1 to 10,  or  silence  all
  5445.    alarms with 0.
  5446.  
  5447.    \BB+   \BB-   \BB*   %BB                                      \AV[0]\BB-
  5448.    Beeps  &  Bells.   \BB+ turns Beeps & Bells mode ON;  \BB- turns it OFF;
  5449.    and  \BB*  toggles between the two states.  The %BB variable equals "ON"
  5450.    or  "OFF"  as  appropriate.    The  example  macro above can be used  to
  5451.    completely silence all BOYAN sound effects.
  5452.  
  5453.    \DMC[x]                                                        \DMC[240]
  5454.    %DM                                                                  240
  5455.    Display Message Color.    Set  the  Display Message Color to x (1..255).
  5456.    This  color  will  be  used  for messages displayed with subsequent  \DM
  5457.    commands.  Note that numbers greater than 128 are flashing; for example,
  5458.    select  color  240  for flashing black on white.  The %DM variable holds
  5459.    the Display Message color.
  5460.  
  5461.    \DM[string]                                     \DM[You have connected!]
  5462.    \DMx,y[string]                                 \DM40,10[Menu of Options]
  5463.    \DMy[string]                         \DM1[This message is in color %DM.]
  5464.    \DMx,[string]                           \DM30,[The time is now %HR:%MI.]
  5465.    Display Message.  The \DM command  is  used  to display a message on the
  5466.    screen.  The string will  be  displayed  at  column  x  (1..80),  line y
  5467.    (1..24).   If  either  x  or y is omitted before the string in brackets,
  5468.    then BOYAN substitutes default  values.   If x is omitted, BOYAN flushes
  5469.    the string to the right  of the screen.  If y is omitted, BOYAN uses the
  5470.    line above the  current  cursor  position.   In the examples above, "You
  5471.    have connected" is flushed right on the line above the cursor;  "Menu of
  5472.    Options" is at column 40, row 10;   "This  message  is  in color ###" is
  5473.    flushed right on line 1;  and "The time is now ##:##" is at column 30 on
  5474.    the line above  the cursor.  \DM can be used in conjunction with the \KV
  5475.    command to make user menus, for example (see section 5.2.14).
  5476.  
  5477.    \GL+   \GL-   \GL*   %GL
  5478.    Grab screen  Lines  (EGA/VGA  monitors  only).    \GL+ loads the 8x8 ROM
  5479.    screen font, causing an EGA adapter to display 43 lines of text or a VGA
  5480.    adapter  to  display  50 lines of text.  \GL- restores a 25-line screen.
  5481.    \GL* toggles between \GL+ and \GL-.    The variable %GL always holds the
  5482.    current number of lines displayed (25, 43, or 50).
  5483.  
  5484.    \GX[x]                                                           \GX[40]
  5485.    Goto  X-position.    This moves the cursor horizontally to the specified
  5486.    column (1..80).
  5487.  
  5488.    \GY[y]                                                           \GY[20]
  5489.    Goto Y-position.  This moves the cursor vertically to the  specified row
  5490.    (1..24).
  5491.  
  5492.  
  5493.  
  5494.    5.2.10:  BOYAN Power--Macros and Script Files                         92
  5495.    ________________________________________________________________________
  5496.  
  5497.  
  5498.  
  5499.  
  5500.    \KS   \RS
  5501.    Keep  Screen,  Restore  Screen.    These commands are useful for  making
  5502.    user-defined "pop-up" menus.  \KS does several things:  it saves  a copy
  5503.    of  the  top 24 lines of the screen into memory; it  saves  the  current
  5504.    cursor position; and it  temporarily  inhibits  all  I/O from the modem.
  5505.    After  \KS,  you  could  clear  the  screen  (with  \ZS) or display menu
  5506.    messages (with \DM).  When you  want  to Restore the Screen contents and
  5507.    cursor  position,  use  the \RS macro.  Note:  BOYAN restores the screen
  5508.    automatically, even without \RS, if either 1) you invoke a command which
  5509.    needs to save the  screen  (e.g., Dialing Directory or a file transfer),
  5510.    or 2) you abort the macro/script by pressing <Esc>.
  5511.  
  5512.    \MC[x]                                                          \MC[112]
  5513.    %MC                                                                  112
  5514.    Menu Color.  \MC[x] sets the Menu and help screen  Color  to x (1..127).
  5515.    The %MC variable holds the current Menu Color in use.
  5516.  
  5517.    \NC[x]                                                            \NC[7]
  5518.    %NC                                                                    7
  5519.    Normal Color.  \NC[x] sets the Normal text Color to x (1..127).  The %NC
  5520.    variable holds the current Normal text Color in use.
  5521.  
  5522.    \RC
  5523.    Restore Color.  This command Restores the default normal text Color.
  5524.  
  5525.    \RX[x]                                                          \RX[-10]
  5526.    Relative  X-position.    This  moves  the  cursor  horizontally  by  the
  5527.    specified number  of  spaces,  backward  (negative  numbers)  or forward
  5528.    (positive numbers).  The cursor will not go  beyond  either  end  of the
  5529.    line.
  5530.  
  5531.    \RY[y]                                                            \RY[5]
  5532.    Relative Y-position.  This moves  the cursor vertically by the specified
  5533.    number of lines, up (negative numbers) or down (positive numbers).   The
  5534.    cursor will not go beyond either end of the screen.
  5535.  
  5536.    \SN[string]                                                     \SN[%SN]
  5537.    System Name status.  This displays the string on the  right  side of the
  5538.    status line, where the current System Name is normally displayed.
  5539.  
  5540.    \ST[string]                              \ST[Beeps & Bells are now %BB.]
  5541.    STatus.  This displays the string on the left side  of  the status line.
  5542.    This sample  macro  displays  the  current  status  of the Beeps & Bells
  5543.    toggle.
  5544.  
  5545.    %XP   %YP
  5546.    X-Position,  Y-Position.    These  variables  equal  the  current column
  5547.    (1..80) and row (1..24) of the cursor, respectively.
  5548.  
  5549.  
  5550.  
  5551.    5.2.11:  BOYAN Power--Macros and Script Files                         93
  5552.    ________________________________________________________________________
  5553.  
  5554.  
  5555.  
  5556.  
  5557.    \ZS
  5558.    "Zaps" (clears) the Screen.
  5559.  
  5560.    5.2.11  Session Logging & Printing
  5561.  
  5562.    \LD+   \LD-   \LD*   %LD   %LN       \LD*\ST[Logging to %LN is now %LD.]
  5563.    \LD+[filename]                                  \LD+[C:\%MO-%DA-%YR.LOG]
  5564.    Log to Disk.    \LD+ opens a log file.  If no filename is specified, the
  5565.    default (or most recently-used log file) is used.  Opening the  log file
  5566.    runs  Auto-macro  #14,  which inserts a header with the date and time in
  5567.    the  file.    While  the  log  file is open, all text appearing  on  the
  5568.    communication screen is saved to the file.   \LD-  closes  the  open log
  5569.    file;   \LD* toggles logging ON and OFF.  The %LD variable maintains the
  5570.    status of the log file as "ON" or "OFF".  %LN holds the full name of the
  5571.    last log file opened, or the  default  BOYAN.LOG if none has been opened
  5572.    yet.  In the second example above, the date variables are used to open a
  5573.    log file with the date in the filename; for example, on November fourth,
  5574.    the filename used would be C:\11-04-91.LOG.
  5575.  
  5576.    \LM[string]                                  \LM[== Connected to %SN ==]
  5577.    Log Message.  This inserts  a  message  in  the  log file if the file is
  5578.    open.  If you include the example macro above in your Connect Auto-macro
  5579.    #6, then whenever you connect to a system while the log  file  is  on, a
  5580.    line with that system's name will be added to the log.
  5581.  
  5582.    \PM[string]                    \PM[== Connected to system number %S# ==]
  5583.    Print  Message.    This command prints  the  specified  string  on  your
  5584.    printer.   You can use this command to  set  up  printer  initialization
  5585.    codes; for example, \PM[^X^[g] sends <Ctrl-X>,<Escape>,<g>.
  5586.  
  5587.    \PP[x]                                                            \PP[2]
  5588.    Printer Port.  Select a new device (1, 2, 3, or  4)  for  all subsequent
  5589.    printing.
  5590.  
  5591.    \PR+   \PR-   \PR*   %PR
  5592.    PRinter.  \PR+ turns printer log mode on.    If  used  in a script file,
  5593.    printer  logging  starts  immediately;  otherwise, BOYAN's printer setup
  5594.    menu is displayed.  All text appearing on the  communication  screen  is
  5595.    printed until  printer  logging  is  turned  off  by \PR-.  \PR* toggles
  5596.    printer logging; %PR equals "ON" or "OFF" as appropriate.
  5597.  
  5598.    \PS
  5599.    Print Screen.  This is identical to keying <Shift-PrtSc> by hand.
  5600.  
  5601.    \SS   %DN
  5602.    Save Screen to disk.  This command saves the current screen to the BOYAN
  5603.    screen dump  file  (see  section  3.6).  The Dump file Name is stored in
  5604.    variable %DN.
  5605.  
  5606.  
  5607.  
  5608.    5.2.11:  BOYAN Power--Macros and Script Files                         94
  5609.    ________________________________________________________________________
  5610.  
  5611.  
  5612.  
  5613.  
  5614.    \UF+   \UF-   \UF*   %UF                    \UF*\ST[Usage file now %UF.]
  5615.    \UF+[filename]   %UN                                  \UF+[LONGDIST.USE]
  5616.    Usage File.    \UF+  and  \UF- turn the BOYAN.USE usage file on and off,
  5617.    respectively.  If a filename is specified after the \UF+  command, BOYAN
  5618.    will use that filename for the usage file.  \UF* toggles the usage file,
  5619.    and the %UF variable holds its current status, "ON" or "OFF".  %UN holds
  5620.    the full Name of the current Usage file.
  5621.  
  5622.    \UM[string]                             \UM[Current DOS directory = %C:]
  5623.    Usage Message.    This  command  enters a line into the usage file.  The
  5624.    date and time are  automatically  appended to the beginning of the line,
  5625.    in whatever format  you specify (see section 3.6).  To add a line to the
  5626.    usage file without  the  date/time prefix, use the command \AF%UN[..your
  5627.    msg  here..] instead.  If the Usage File is OFF, the \UM command has  no
  5628.    effect.  The example above would add a line to the end of the usage file
  5629.    showing the current DOS path.
  5630.  
  5631.    5.2.12  DOS
  5632.  
  5633.    \AFfilename[string]      \AF`LETTER.TXT[This file is dated %MO/%DA/%YR.]
  5634.    Append to text File.  This very powerful command allows scripts to build
  5635.    custom  text files.  The string is appended to the end of the text  file
  5636.    specified by filename.  If that  file  does not exist, BOYAN creates it.
  5637.    The Host Mode script uses this command to create a  message  file as the
  5638.    message is being typed.  See  also  the  \GV command (for reading from a
  5639.    text file).
  5640.  
  5641.    %B:                                                            D:\BOYAN\
  5642.    BOYAN path.  This variable holds the BOYAN home directory's drive+path.
  5643.  
  5644.    %C:                                                                  A:\
  5645.    Current  path.    This  variable  holds  the  current  disk  directory's
  5646.    drive+path.
  5647.  
  5648.    \CF+   \CF-   \CF*
  5649.    Check Free.   \CF+  tells  BOYAN  to automatically check free disk space
  5650.    before each download and within the directory file manager.   \CF- means
  5651.    you must manually press <Alt-F> in  the  download  menu or F in the file
  5652.    manager to see remaining disk space.  \CF* toggles.
  5653.  
  5654.    \DC[string]                                      \DC[pkunzip -v boyan5a]
  5655.    \DC-[string]                                             \DC-[dir >prn:]
  5656.    \DC+[string]                                              \DC+[type %DN]
  5657.    DOS  Command.    BOYAN  invokes  the  COMMAND.COM  processor to  execute
  5658.    [string]  as  a DOS command.  If you use the \DC-  command,  BOYAN  will
  5659.    continue immediately after the  DOS  command  finishes.   With \DC+, you
  5660.    will  be  prompted  for a keypress before returning to BOYAN.  The plain
  5661.    \DC command (with no minus) usually prompts for a keypress, but does not
  5662.    if there is a script file running.
  5663.  
  5664.  
  5665.  
  5666.    5.2.12:  BOYAN Power--Macros and Script Files                         95
  5667.    ________________________________________________________________________
  5668.  
  5669.  
  5670.  
  5671.  
  5672.    %DR                                                                    A
  5673.    DRive.  This variable holds the currently-logged disk drive letter.
  5674.  
  5675.    %DS                                                                  125
  5676.    DOS Shell  space.    This  variable  equals  the amount of memory (in K)
  5677.    available  for  DOS  Shells.    If  %DS equals 0, then the \JD  and  \DC
  5678.    commands cannot function.
  5679.  
  5680.    \FE+filename[macro]           \FE+c:\files\twiddle.arc[\UL[twiddle.arc]]
  5681.    \FE-filename[macro]              \FE-boyan5a.zip[\DC[pkzip boyan5a *.*]]
  5682.    File Exists?   With  the  \FE+  command, the enclosed macro is processed
  5683.    only if the specified file  exists  on  your  disk.    The  \FE- command
  5684.    processes the enclosed macro only if the specified file does not already
  5685.    exist.
  5686.  
  5687.    \FM[filespec]                                              \FM[c:\util\]
  5688.    \FMc[filespec]                                                    \FMU[]
  5689.    \FMstring[filespec]                             \FM`pkunzip -v[%D:*.ZIP]
  5690.    The File Manager.  Within the brackets, specify the path and/or wildcard
  5691.    pattern of files to display, or leave the brackets empty to  display all
  5692.    files  in the current directory.  There are also two ways to specify the
  5693.    File Manager "default command", which is the the  command  selected when
  5694.    you press <Enter> or double-click the mouse on a filename:
  5695.  
  5696.       1.  Between \FM and [filespec], include a single letter (any of C D E
  5697.           F  I  L  M R S U V W).  The File Manager command corresponding to
  5698.           that letter will become the default command.  For example, \FMU[]
  5699.           invokes the File Manager in  the current directory with Upload as
  5700.           the default command.
  5701.  
  5702.       2.  Between \FM and [filespec],  include  a  DOS  command two or more
  5703.           characters long.  The File  Manager default will then invoke that
  5704.           DOS command, giving it the name(s) of the selected file(s) as its
  5705.           argument.    The  "pkunzip  -v"  example above invokes  the  File
  5706.           Manager  on  all  *.ZIP files in your Download directory; to view
  5707.           the contents of a .ZIP file, you would simply highlight that file
  5708.           and press <Enter>.
  5709.  
  5710.    \FS[c]                                                          \FS[%DR]
  5711.    Free Space.  This displays a status message showing the number  of bytes
  5712.    of free space on the specified disk drive.
  5713.  
  5714.    \JD                                                            \AT+[\JD]
  5715.    Jump to DOS.    You must type EXIT <Enter>  to return to BOYAN from DOS,
  5716.    so be sure this command is not processed when BOYAN is unattended.
  5717.  
  5718.  
  5719.  
  5720.    5.2.12:  BOYAN Power--Macros and Script Files                         96
  5721.    ________________________________________________________________________
  5722.  
  5723.  
  5724.  
  5725.  
  5726.    %LC                                                                 TYPE
  5727.    List Command.  This  variable  holds the DOS command you have configured
  5728.    for  viewing a file.  For example, to view the BOYAN.USE file, you would
  5729.    run the \DC[%LC boyan.use] macro.
  5730.  
  5731.    \ND[string]                                             \ND[b:\download]
  5732.    New Directory.  This command selects a new default disk drive or path.
  5733.  
  5734.    %S:                                                     D:\BOYAN\SCRIPT\
  5735.    Script path.  This variable holds BOYAN's script file disk drive+path.
  5736.  
  5737.    %SC                                                             HOST.BSC
  5738.    SCript.  This variable holds the name of the current script file running
  5739.    (or the last script file run, if none is active).
  5740.  
  5741.    %WC                                                                EDLIN
  5742.    Word processor Command.  This variable holds the DOS  command  you  have
  5743.    configured for editing a file.
  5744.  
  5745.    5.2.13  File Transfers
  5746.  
  5747.    \AU+   \AU-   \AU*   %AU           \AU* \ST[Auto-downloading is now %AU]
  5748.    AUto-downloading.  \AU+ enables  auto-downloading,  \AU-  disables, \AU*
  5749.    toggles between the two.  %AU maintains the current state of the toggle,
  5750.    "ON" or "OFF".
  5751.  
  5752.    %D:                                                         C:\MODEM\DL\
  5753.    %U:                                                                  B:\
  5754.    Download  path,  Upload path.  These variables  hold  the  name  of  the
  5755.    default download and upload directories, respectively.
  5756.  
  5757.    \DLc-[filename]                                    \DLY-[c:\twiddle.zip]
  5758.    DownLoad.  The  \DL  command  offers  three parameters, all of which are
  5759.    optional:
  5760.  
  5761.       1.  The first parameter is a  letter or digit specifying the protocol
  5762.           to  use for the download.  The letter should be the same one used
  5763.           in the protocol menu,  e.g.,  X=Xmodem, K=Kermit, etc.  If you do
  5764.           not specify  a protocol letter, the current default protocol will
  5765.           be used.  Example: \DLY[] would invoke the  Download  Window with
  5766.           Ymodem as the default protocol selection.
  5767.  
  5768.       2.  The second parameter is an optional - minus sign.  If you include
  5769.           the minus sign, then BOYAN  will bypass its Download Window where
  5770.           you confirm the  protocol,  path, and filename; the download will
  5771.           begin immediately.  Example:    \DL-[]  is used in Auto-macro #12
  5772.           so that auto-downloads start without any keypresses on your part.
  5773.  
  5774.  
  5775.  
  5776.    5.2.13:  BOYAN Power--Macros and Script Files                         97
  5777.    ________________________________________________________________________
  5778.  
  5779.  
  5780.  
  5781.  
  5782.       3.  The  third  parameter,  enclosed in brackets, is the full name of
  5783.           the file to download.  You may also specify a  path  only (but no
  5784.           filename), or leave the brackets empty.  If you do not  specify a
  5785.           filename, BOYAN will use its automatic  filename-find  feature to
  5786.           determine the  name.    (Some  external  protocols  determine the
  5787.           filename automatically,  in which case you may leave the brackets
  5788.           empty.)    If you do not specify  a  filename  and  BOYAN  cannot
  5789.           determine  the name from the screen, BOYAN  will  name  the  file
  5790.           FILE####.BDL, where #### is  the  time  of  day when the download
  5791.           started.    Examples:    \DL-[twiddle.zip] will immediately begin
  5792.           downloading twiddle.zip  into  your  default  Download directory.
  5793.           \DL[%S:] will direct  a  download to your BOYAN script directory,
  5794.           prompting you for the filename.
  5795.  
  5796.    \DP[c]                                                            \DP[K]
  5797.    %DP                                                                    K
  5798.    Default Protocol.  This sets the default file transfer  protocol.    Put
  5799.    the  first  letter  of the protocol (A, C, K, X,  Y,  Z,  etc.)  in  the
  5800.    brackets.  The current  default  protocol's  letter  is always stored in
  5801.    variable %DP.
  5802.  
  5803.    \IP+c[macro]                                      \IP+K[\DLK[] | \DLX[]]
  5804.    \IP-c[macro]                           \IP-Z[\DM[Zmodem not installed.]]
  5805.    If  Protocol  available?   The \IP+ command processes the enclosed macro
  5806.    only If the Protocol specified by the character  c  is  available.   The
  5807.    first example above performs a Kermit download if the Kermit protocol is
  5808.    available, or an Xmodem download  otherwise.  The \IP- command processes
  5809.    the enclosed macro only if the specified protocol is not available.
  5810.  
  5811.    \IT+[macro]                 \DLy[]\IT+[\DM[Ymodem download successful.]]
  5812.    \IT-[macro]                   \ULk[boyan5a.zip]\IT-[\DM[Upload failed.]]
  5813.    If Transfer successful?  The \IT+ command processes  the  enclosed macro
  5814.    only If the most recent file Transfer completed successfully.   The \IT-
  5815.    command processes its macro only if the last transfer was unsuccessful.
  5816.  
  5817.    %P:                                                   D:\BOYAN\EXTPROTS\
  5818.    Protocol  path.   This variable holds the  full  name  of  the  external
  5819.    protocol program path, configured in Configuration Area <D>.
  5820.  
  5821.    %T:                                                         C:\MODEM\DL\
  5822.    %TF                                                          TWIDDLE.ARC
  5823.    Transfer path, Transfer Filename.    The %T: variable stores the name of
  5824.    the most recent directory selected for  a  file transfer;  %TF holds the
  5825.    name of the file most recently selected to be transferred.
  5826.  
  5827.    %TI                  Ymodem DL: ALLFILES.ARC     44,160 0:04:36    67.4%
  5828.    Transfer  Information.     After   a  file  transfer,  BOYAN  builds  an
  5829.    information string  like  the  one  above.    The string consists of the
  5830.    protocol used, UL or  DL,  filename,  file  size, transfer duration, and
  5831.  
  5832.  
  5833.  
  5834.    5.2.13:  BOYAN Power--Macros and Script Files                         98
  5835.    ________________________________________________________________________
  5836.  
  5837.  
  5838.  
  5839.  
  5840.    efficiency  percentage.    If  the  transfer is unsuccessful,  the  word
  5841.    (FAILED) follows the filename.  This string can be included in the usage
  5842.    log, for example, as in Auto-macro #8 ("After a file transfer").
  5843.  
  5844.    %UD                                                                   UL
  5845.    UpLoad or DownLoad?   This variable holds "UL"  after an upload or  "DL"
  5846.    after a download.
  5847.  
  5848.    \ULc-[filename]                         \UL-[c:\modem\files\twiddle.arc]
  5849.    UpLoad.  The use of this command, UpLoad file, is  analogous  to the use
  5850.    of the  \DL  command.  The protocol letter (c), minus sign, and filename
  5851.    parameters  are  all  optional.  If  BOYAN  cannot  find  the  file  for
  5852.    uploading, however, the upload will be aborted.
  5853.  
  5854.    \WW+   \WW-   \WW*
  5855.    Word Wrap.  \WW+ enables, \WW- disables, and \WW* toggles  the automatic
  5856.    word wrap handling feature of message uploads.
  5857.  
  5858.    5.2.14  User Variables
  5859.  
  5860.    %V0   %V1  ...  %V9
  5861.    %VA   %VB  ...  %VZ
  5862.    These  36  user-definable  variables,  along  with  the  following macro
  5863.    commands, give the macro  language  enormous power.  A user variable can
  5864.    hold a string, a number, or a macro.
  5865.  
  5866.    \DVc[x]                                             \II+;,%V0[\DV0[%II]]
  5867.    Deletes the leading x characters from the specified user Variable.   For
  5868.    example,  \SV0[Justin] \DV0[3]  results  in %V0 being set to "tin".  The
  5869.    more complicated example above has the effect of deleting all characters
  5870.    up to the first semicolon in %V0.  Combined with  the  \LV command, this
  5871.    command  lets  you  pick out any substring from within a variable.  (See
  5872.    HOST.BSC for many examples.)
  5873.  
  5874.    \GVc[filename]                    \RE[ \GV5[FOO.DOC] %V5{ \IV5+^Z[\EM] ]
  5875.    \GVc[]                                                            \GV5[]
  5876.    Get Variable from file.  This  command  reads  from an ASCII file into a
  5877.    user variable.  Each  successive  call  to  \GV1[foo.txt] reads one more
  5878.    line  from  the  specified file foo.txt.    If  you  switch  to  another
  5879.    filename, e.g., \GV3[bar.doc], then foo.txt will be closed and the first
  5880.    line of bar.doc  will  be read.  When you reach the end of the file, the
  5881.    user  variable will contain the control-Z (EOF)  marker.    The  example
  5882.    given above actually  performs  an  ASCII  upload of FOO.DOC:  the macro
  5883.    repeatedly gets a line of text from FOO.DOC into %V5,  then  sends %V5 +
  5884.    <CR> over the modem, and checks to see if the ^Z marker was reached.  It
  5885.    is a good idea to close any files opened this way  by  using  the \GVc[]
  5886.    command.
  5887.  
  5888.  
  5889.  
  5890.    5.2.14:  BOYAN Power--Macros and Script Files                         99
  5891.    ________________________________________________________________________
  5892.  
  5893.  
  5894.  
  5895.  
  5896.    \IVc+string[macro]               \IV5+secret[Welcome! | Wrong password.]
  5897.    \IVc-string[macro]                           \IV0-[\DM[Input accepted.]]
  5898.    If Variable equals?    The  \IV  command tests whether variable c equals
  5899.    string.    \IVc+string[macro]   is   actually   just   a   shortcut  for
  5900.    \IE+%Vc,string[macro] , and similarly with  \IVc-.    The  first example
  5901.    sends  the  "Welcome!"  message  if  %V5 equals "secret", or the  "Wrong
  5902.    password" message otherwise.    The  second  example tests to see if %V0
  5903.    equals the  empty  string--that  is,  if %V0 is empty.  If not, then the
  5904.    "Input accepted" message is displayed.
  5905.  
  5906.    \KVc[string]                                       \KV0[Your selection?]
  5907.    \KVcstring1[string2]                 \KV8%DR[New disk drive: ] \ND[%V8:]
  5908.    Keyboard Variable.   This  command  lets  you  make  BOYAN's  macros and
  5909.    scripts interactive.  BOYAN prompts you for keyboard input on the status
  5910.    line; what you  type is stored in variable c.  The string in brackets is
  5911.    the prompt; e.g., the first example above prompts the  user  with  "Your
  5912.    selection?".    You can specify a default  response  to  the  prompt  by
  5913.    placing another string  before  the  first  left  bracket.    The second
  5914.    example above uses  the  %DR  variable  to make the default response the
  5915.    current  drive letter; it then uses the \ND command to change to the new
  5916.    drive letter typed by the user.  Note:  when responding to a \KV prompt,
  5917.    you  must  press  <Enter> after typing your response, unless the default
  5918.    response is one character long.  If the  default  response  is  a single
  5919.    character, BOYAN expects a keyboard  response of only one character, and
  5920.    does not require you to press <Enter>.   In  the  second  example above,
  5921.    since the current  drive  letter  %DR  is always just one character, the
  5922.    user does not have to press <Enter> after responding.
  5923.  
  5924.    \LVc[x]                                                 \SV1[%B:]\LV1[2]
  5925.    \LVc[]   %LV                          \LV5[]  \ST[Length of %V5 is %LV.]
  5926.    Length of Variable.  This command allows your macros  to  perform  basic
  5927.    string manipulation.  If a numeric argument x  is  given,  \LV  sets the
  5928.    length of variable c to be exactly x (0..80)  characters,  padding  with
  5929.    spaces  if needed.  In the first example above, %V1 is set to the  BOYAN
  5930.    directory (e.g. "C:\BOYAN"),  and  then truncated down to two characters
  5931.    so  %V1 = "C:".  The %LV variable holds the new length of the  variable.
  5932.    If  no  argument  is enclosed in the brackets, then the  length  of  the
  5933.    string is left unchanged.  The second example above demonstrates  how to
  5934.    find the length of a variable's contents without changing the variable.
  5935.  
  5936.    \RVc[y]                                 Please type your name:  \RV1[30]
  5937.    \RVc*[y]                           Please type your password:  \RV2*[20]
  5938.    \RVc-[y]                                       \WF[Time left:] \RVT-[20]
  5939.    \RVc+[y]                                                       \RVL+[70]
  5940.    Read Variable.  This command is used to read input  from  the modem into
  5941.    user variable c.  Up to y characters are accepted, and the entry must be
  5942.    terminated by a <Return>.   Backspacing is allowed and handled properly.
  5943.    With  the * parameter, BOYAN echoes asterisks  rather  than  the  actual
  5944.    typed text back to the  modem.    With  the  -  parameter,  BOYAN echoes
  5945.  
  5946.  
  5947.  
  5948.    5.2.14:  BOYAN Power--Macros and Script Files                        100
  5949.    ________________________________________________________________________
  5950.  
  5951.  
  5952.  
  5953.  
  5954.    nothing at all; this can  be used to read prompts from a BBS into a user
  5955.    variable.   Finally,  the  +  parameter  tells  BOYAN to "read with word
  5956.    wrap":  if the input text exceeds the given maximum  length  y, then the
  5957.    previous  word  of  input will be erased and saved for  the  next  \RVc+
  5958.    command.  See the HOST.BSC script for many examples of how \RV is used.
  5959.  
  5960.    \SVc[string]                      \SV4[The current time is %HR:%MI:%SE.]
  5961.    Set Variable.  This command lets you Set user Variable  c.   The example
  5962.    above sets variable %V4 equal to a message containing the current time.
  5963.  
  5964.    \TVc[y]                                                         \TV1[84]
  5965.    Terminal keyset macro into  Variable.   This command is analagous to the
  5966.    \MV command, moving the  contents  of  BOYAN  Secondary Keyset macro # y
  5967.    (41..110) into user variable c.
  5968.  
  5969.    \+Vc[y]                           \SV1[68]  \+V1[34]  \DM[ 68+34 = %V1 ]
  5970.    Plus Variable.  This command  lets your macros perform basic arithmetic.
  5971.    The number y is added to the contents of user variable c, and the result
  5972.    is again stored in variable c.   To  perform  subtraction,  let  y  be a
  5973.    negative number, e.g. \+V1[-34].  The valid range for  numeric  data  is
  5974.    -10000..10000.  In the example above, the  \+V1[34] command  changes the
  5975.    value of %V1 from 68 to 102.
  5976.  
  5977.    5.2.15  Macro Control
  5978.  
  5979.    \\string                         \DL[]  \\ that command downloads a file
  5980.    (Macro  comment)    BOYAN ignores all characters in a macro after the \\
  5981.    command.  Use this to insert remarks in a macro.  BOYAN also ignores any
  5982.    spaces which immediately precede the "\\", so that you can use spaces to
  5983.    align  comments in a script file.  The above example has the same effect
  5984.    as "\DL[]" alone.
  5985.  
  5986.    \AB                       \KV2Y[Continue? ]\IV2+N[\AB]\DM[Continuing...]
  5987.    ABort  current  macro  (or script file) processing.  The example prompts
  5988.    the user with the "Continue?" prompt.  If  the  user  responds  "N", the
  5989.    macro or  script  is  aborted,  and  none  of the following commands are
  5990.    processed.
  5991.  
  5992.    \AT+[macro]                                                    \AT+[\MM]
  5993.    \AT-[macro]                       \AT-[\PM[Script file %CS is running.]]
  5994.    ATtended?  The \AT+  command  processes the enclosed macro only if BOYAN
  5995.    is  attended,  that is, if there is no script file running.    The  \AT-
  5996.    command processes the enclosed macro only if BOYAN is not attended--when
  5997.    a script file is running.
  5998.  
  5999.    \EM                                         \RE[ \DM[ %RE ]  \CA+[\EM] ]
  6000.    End Macro:  stops the current macro; if in a script file, advance to the
  6001.    next  line of the script.  This command is most often used to break  out
  6002.    of an infinite  REpeat  loop.    In  the example above, BOYAN displays a
  6003.  
  6004.  
  6005.  
  6006.    5.2.15:  BOYAN Power--Macros and Script Files                        101
  6007.    ________________________________________________________________________
  6008.  
  6009.  
  6010.  
  6011.  
  6012.    running counter until the CArrier signal is detected, at which point the
  6013.    \EM command breaks the loop.
  6014.  
  6015.    \IE+string1,string2[macro]             \IE+%UD,DL[\DM[File downloaded.]]
  6016.    \IE-string1,string2[macro]        \IE-0,%DS[\JD|\ST[Can't jump to DOS.]]
  6017.    If  Equal?    The \IE command tests the equality of string1 and string2.
  6018.    \IE+  processes  the  enclosed macro if  the  strings  are  equal;  \IE-
  6019.    processes  its  macro  only if they are not.  The  first  example  above
  6020.    displays the "File downloaded"  message  if the last file transfer was a
  6021.    download (the %UD variable would equal "DL").  The second  example jumps
  6022.    to DOS if the amount  of  DOS  Shell  space  (%DS) does not equal 0, and
  6023.    writes a status message if %DS does equal 0.   Case  is NOT significant,
  6024.    so ibm-PC matches Ibm-Pc.
  6025.  
  6026.    \II+string1,string2[macro]  \II+Put,Computer[\DM['Put' found at position
  6027.                                                                      %II.]]
  6028.    \II-string1,string2[macro]    \II-PCA,%V6[\DM[Error:  %V6 should contain
  6029.                                                                    'PCA'.]]
  6030.    %II   %IM                                           \II+;,%V8[\LV8[%IM]]
  6031.    If  Included?    The \II command tests  If  string1  is  Included  as  a
  6032.    substring of  string2,  as  "Put"  is  a  substring of "Computer".  \II+
  6033.    processes  its  macro  if string1 is included in string2; \II- processes
  6034.    macro if string1 is not  in  string2.    The  %II  variable  returns the
  6035.    numeric position within string2  where  string1  was  found, if \II+ was
  6036.    successful,  so  the  first example macro above  displays  the  message,
  6037.    "'Put' found at position 4".  The %IM macro simply equals %II Minus one.
  6038.    This  is used in the third example above to truncate %V8 at the position
  6039.    where a semicolon was  found;  e.g.,  if %V8 = Justin Boyan;ibm-pc, then
  6040.    processing the \LV8[%IM] macro leaves %V8 = Justin Boyan.
  6041.  
  6042.    \IK+[macro]                        \ST[Press any key: _] \RE[\IK+[\EM] ]
  6043.    \IK-[macro]
  6044.    %IK                                         \IE-%IK,Q[\MA[61] |ELSE \AB]
  6045.    If  Keypressed?   \IK+ runs its enclosed macro only if a  key  has  been
  6046.    pressed during the operation of the current macro or script block.  \IK-
  6047.    runs its enclosed macro if no  key  has  been pressed.  The %IK variable
  6048.    always  holds  the  last character typed by the user.  The first example
  6049.    above repeatedly checks for a keypress, ending the macro once  you press
  6050.    a key.  The second example runs macro #61 if the  last  key  you pressed
  6051.    was  q; if the last key you pressed was not q, then the macro/script  is
  6052.    aborted.  Compare %IK with the \KV macro command  described  in  section
  6053.    5.2.14.  The difference is that  \KV  stops macro processing to wait for
  6054.    user input, while %IK checks to see if you have typed anything while the
  6055.    macro is running.
  6056.  
  6057.    \MA[x]                                                            \MA[9]
  6058.    MAcro.  This invokes BOYAN macro  #  x  (1-120).  For example, the macro
  6059.    command \MA[9]  runs the initialization Auto-macro;  \MA[38] invokes the
  6060.    <Alt-X> (exit BOYAN with verify) macro.
  6061.  
  6062.  
  6063.  
  6064.    5.2.15:  BOYAN Power--Macros and Script Files                        102
  6065.    ________________________________________________________________________
  6066.  
  6067.  
  6068.  
  6069.  
  6070.    \REx[macro]                                                  \RE5[\WF[]]
  6071.    \RE[macro]                    \ST[Waiting for carrier...] \RE[\CA+[\EM]]
  6072.    %RE                                             \RE24[\DM%RE[Hi there!]]
  6073.    REpeat  macro.    If  a  number  x  (1..32767) is given before the  left
  6074.    bracket,  then  the  enclosed macro will be executed x times.  The first
  6075.    example above would wait  for  five characters to arrive from the modem.
  6076.    If no number is specified,  the enclosed macro is repeated indefinitely.
  6077.    To break out of such an "infinite loop," the enclosed macro must contain
  6078.    an  ABort,  End Block, or End Macro command (or the user  can  abort  by
  6079.    pressing <Esc>).  Above, the \CA+[\EM]  command  is used to break out of
  6080.    the  repeat  loop as soon as the carrier signal is detected.    The  %RE
  6081.    variable holds the counter number of the innermost repeat loop.   In the
  6082.    third example above, the message "Hi there" is displayed on line 1, line
  6083.    2, line 3, ... all the way to line 24.
  6084.  
  6085.    5.2.16  Miscellaneous
  6086.  
  6087.    \CB[]                                                        \AT+[\CB[]]
  6088.    \CB[c]                                                            \CB[T]
  6089.    Configure BOYAN.  \CB[] invokes BOYAN's main configuration menu.  If you
  6090.    specify a letter (any of S C D E M A T  X)  within  the  brackets, BOYAN
  6091.    will  jump directly to the specified Config  Area.    The  configuration
  6092.    choices  must be made from the keyboard, so do not run this macro unless
  6093.    the keyboard is attended.
  6094.  
  6095.    \EX                                       \KV0Y[OK to exit? ]\IV0+Y[\EX]
  6096.    EXit BOYAN immediately!   A macro like the one above may be used to make
  6097.    the user confirm that he wants to exit.
  6098.  
  6099.    \HE
  6100.    HElp.  This invokes BOYAN's main help screen, the BOYAN Command Menu.
  6101.  
  6102.    \HK
  6103.    Help with function Keys.    This calls up BOYAN's screen of user-defined
  6104.    function key descriptions.
  6105.  
  6106.    \RB
  6107.    Review Buffer.  This calls up the scroll-back buffer for viewing, script
  6108.    learning, etc.
  6109.  
  6110.    \SK+   \SK-   \SK*   %SK
  6111.    Secondary Keyset (Scroll locK).    \SK+  sets Scroll-Lock ON, activating
  6112.    the Secondary Keyset of the current BAM.  \SK-  turns  Scroll-Lock  OFF,
  6113.    \SK* toggles Scroll-Lock, and %SK returns  Scroll-Lock's  current status
  6114.    (ON or OFF).
  6115.  
  6116.  
  6117.  
  6118.    5.2.16:  BOYAN Power--Macros and Script Files                        103
  6119.    ________________________________________________________________________
  6120.  
  6121.  
  6122.  
  6123.  
  6124.    \SMx[string]                                         \SM1[ATDT 9,"@SF"{]
  6125.    Set BOYAN Macro  # x to the specified macro.  This new macro is saved to
  6126.    the BOYAN.MAC file, just as if it were reconfigured in Config  Area <M>.
  6127.    The example sets macro #1 (the Dialing command) to ATDT 9,@SF{  which is
  6128.    useful for dialing out from Centrex-type phone extensions.
  6129.  
  6130.    \TMx[string]                                                \SN101["\HK]
  6131.    Set  BOYAN  Terminal  Keyset Macro # x (41..110) to the specified macro.
  6132.    This  new  macro  is saved to the .CNF file corresponding to the current
  6133.    BAM, e.g., VT-100.CNF, HOST.CNF,  etc.   Also see the \TV command above,
  6134.    which reads a macro from the secondary keyset into a user variable.
  6135.  
  6136.    5.2.17  <Shift-F1> Trace Mode
  6137.  
  6138.    BOYAN's macro language provides  a  "trace"  feature  which can help you
  6139.    learn  how  a  macro  works  or  discover why a macro or script  is  not
  6140.    working.  When Trace Mode is  on,  the  middle of the Status Line always
  6141.    displays the two letters of the current macro  command  being processed.
  6142.    (When  sending text to the modem, you will see a small arrow rather than
  6143.    two letters.)  In addition, while  a  script file is running, the Status
  6144.    Line  will  indicate  the  current  line  number  of  the  script  being
  6145.    processed.
  6146.  
  6147.    An especially handy feature is the ability to slow down and speed up the
  6148.    script dynamically, as the script is running.  When the  Num-Lock toggle
  6149.    is  not  locked,  the macro or script being traced will  race  along  at
  6150.    normal speed.  At this speed it is impossible to follow the trace output
  6151.    closely.    When  Num-Lock   is   locked,   however,  BOYAN  pauses  for
  6152.    approximately one-half second between displaying  the  macro's  name and
  6153.    actually executing  it.    You  may turn Num-Lock on and off at any time
  6154.    while a script is running.
  6155.  
  6156.    \NK+   \NK-   \NK*   %NK
  6157.    Num locK.  \NK+  sets  Num-Lock, \NK- unsets Num-Lock, \NK* toggles Num-
  6158.    Lock,  and  %NK  returns Num-Lock's current status (ON or OFF).  A handy
  6159.    debugging tool is to insert the \NK+ command  at  the  position  in your
  6160.    script where you are having trouble.  When the script gets  to precisely
  6161.    that  point,  it will slow down so that you can follow  the  Trace  Mode
  6162.    output.
  6163.  
  6164.    \TR+   \TR-   \TR*   %TR
  6165.    The \TR+  and  \TR-  macros  are used to actually turn Trace Mode on and
  6166.    off.    \TR*  toggles the Trace Mode, and %TR reports the current status
  6167.    (ON or OFF).
  6168.  
  6169.  
  6170.  
  6171.    5.3:  BOYAN Power--Macros and Script Files                           104
  6172.    ________________________________________________________________________
  6173.  
  6174.  
  6175.  
  6176.  
  6177.    5.3  BOYAN Macro Tutorial, Examples
  6178.  
  6179.  
  6180.    The best way to learn how BOYAN's macros work is  to  experiment:  write
  6181.    one, and see what it does!    The <Alt-M> "Enter macro manually" command
  6182.    is useful for trying out  a  short  macro.    Many  example  macros have
  6183.    already been given, next to the descriptions of all the macro commands.
  6184.  
  6185.    The following additional examples illustrate  how  BOYAN's  120 built-in
  6186.    macros give you flexibility unlike any other communications program.  To
  6187.    edit the BOYAN macros, press <Alt-K>.  You can then  choose  a macro for
  6188.    editing by either typing its number (1-120) and pressing <Enter>,  or in
  6189.    the case of keystroke  macros,  simply  pressing  the keystroke (such as
  6190.    <F2>) itself.  For a review  of  basic macro editing, please see section
  6191.    3.9.4.
  6192.  
  6193.    Don't  worry  about  destroying  BOYAN's  original   macros   while  you
  6194.    experiment.  You can always restore  all  of the preset macros by simply
  6195.    deleting the BOYAN.MAC file from your disk and starting BOYAN over.
  6196.  
  6197.    5.3.1  Built-in Keystroke Examples
  6198.  
  6199.    This section studies some of the built-in BOYAN keystroke macros to show
  6200.    you  how  they  work and to aid you in modifying them if you like.  They
  6201.    are ordered roughly from simplest to most complex.
  6202.  
  6203.    >                    <F2>:  Send your name + <Enter>                   <
  6204.    Macro #72: Justin Boyan{
  6205.    The simplest kind of macro!  The left curly brace stands for the <Enter>
  6206.    or <Return> character.
  6207.  
  6208.    >                  <F3>:  Send your password + <Enter>                 <
  6209.    Macro #73: %PW{
  6210.    When you  a  dial  a  system  from  the dialing directory, that system's
  6211.    private  password is stored in BOYAN's %PW variable.    This  key  macro
  6212.    sends that password and the <Return> character over the modem.
  6213.  
  6214.    >               <Alt-F10>:  Display current time and date              <
  6215.    Macro #110: \ST[It is now %HR:%MI:%SE on %MO/%DA/%YR.]
  6216.    The  \ST[..]  macro  command displays a string on the Status line.  This
  6217.    example shows how Macro Variables may be used in such a string.
  6218.  
  6219.    >                     <Alt-N>:  New disk directory                     <
  6220.    Macro #28: \KV0%C:[NEWDIR: ]  \ND[%V0]  \ST[%C:]
  6221.    This  example shows how BOYAN's interactive macros  work.    First,  the
  6222.    macro  uses the "\KV#default[prompt]" command to  prompt  the  user  for
  6223.    input.    In  this case, the user's prompt is "NEWDIR:  ";  the  default
  6224.    response is %C:, a variable which  returns  the name of the current disk
  6225.    directory; and the user's final response is kept in  user  variable  #0.
  6226.  
  6227.  
  6228.  
  6229.    5.3.1:  BOYAN Power--Macros and Script Files                         105
  6230.    ________________________________________________________________________
  6231.  
  6232.  
  6233.  
  6234.  
  6235.    Then, the \ND[%V0]  command  switches  to  a New Directory given by %V0.
  6236.    Finally, the \ST command displays a status message, consisting of simply
  6237.    the (new) current disk directory.
  6238.  
  6239.    >               <Shift-F1>:  Toggle BOYAN's "Trace Mode"               <
  6240.    Macro #39: \TR* \ST[Macro trace mode now %TR]
  6241.    First, the \TR* command has the effect of actually  toggling  the  Trace
  6242.    Mode setting.  Then, a status message is displayed  which  includes  the
  6243.    new value of  the Trace Mode variable %TR, either ON or OFF.  This macro
  6244.    is typical of BOYAN toggle commands.  (The  trace  mode  itself  is very
  6245.    useful for understanding macros and scripts; see section 5.2.17.)
  6246.  
  6247.    >                     <Alt-L>:  Toggle Disk Logging                    <
  6248.    Macro #26: \IE+OFF,%LD[\KV0%LN[Log to: ]] \LD*[%V0] \ST[Logging now %LD]
  6249.    This is another toggle command like <Shift-F1>, but it inserts  an extra
  6250.    conditional  command  at  the  beginning.   The conditional  (If  Equal)
  6251.    command checks if logging to disk (%LD) is equal to OFF.    If  so, then
  6252.    the  \KV command prompts the user for a filename to "Log to", giving the
  6253.    default log name (%LN) as a default.
  6254.  
  6255.    >                         <F6>:  View usage log                        <
  6256.    Macro #76: \DC[%LC %UN]
  6257.    This macro  uses  the  \DC[..]  macro to execute a DOS Command.  The %LC
  6258.    variable  names  your  file lister program (specified in Config Area D).
  6259.    The %UN variable  contains  the  name  of  your usage log file.  Putting
  6260.    these  together, the DOS command that <F6>  executes  looks  like  "LIST
  6261.    C:\BOY5\BOYAN.USE".   Similarly, you can assign any  DOS  command  to  a
  6262.    single keystroke.
  6263.  
  6264.    >        <Ctrl-F1>:  View the BOYAN.DOC file, this user's manual       <
  6265.    Macro  #81:  \SV0[%B:BOYAN.DOC]  \FE+%V0[\DC[%LC  %V0]  |  \ST[File  not
  6266.    found.]]
  6267.    This macro adds complexity  to  the <F6> example above because it checks
  6268.    that  the file exists before trying to view it.  In this case, the  file
  6269.    to be viewed is BOYAN.DOC, which if it exists is assumed to live in your
  6270.    BOYAN home directory (specified by %B:).  Here's how  the  macro  works.
  6271.    First, it sets  user  variable  0  to  hold  the  full name of the file,
  6272.    %B:BOYAN.DOC.  Then it uses  the  \FE+  macro  to  check  that  the file
  6273.    exists.   If  it  does,  the macro calls DOS to list the file; otherwise
  6274.    (|), it prints a "File not found" status message.
  6275.  
  6276.    >                <Alt-V>:  View file using File Manager                <
  6277.    Macro #36: \( \KV0[VIEW: ] \RS \IV0+[\FMV[] |ELSE \DC[%LC %V0]]
  6278.    Macro #119: \KS \DM1,24[  (Leave blank for directory.)  ]
  6279.    If a key macro is too long to fit in the space provided, one solution is
  6280.    to break it  up  into  two  separate  macros.  The <Alt-V>, <Alt-R>, and
  6281.    <Alt-W>  key  macros  all make use of macro #119, the \( Shortcut macro.
  6282.    This shortcut does two things:  it stores an image of the current screen
  6283.    in  memory  (\KS), and it displays a brief message on line  24.    After
  6284.  
  6285.  
  6286.  
  6287.    5.3.1:  BOYAN Power--Macros and Script Files                         106
  6288.    ________________________________________________________________________
  6289.  
  6290.  
  6291.  
  6292.  
  6293.    invoking the  shortcut  \(,  the  <Alt-V>  macro  prompts the user for a
  6294.    filename, and then restores the  screen  (\RS),  thus  un-displaying the
  6295.    "Leave  blank  for  disk directory" message.   Finally,  the  \IV0+[...]
  6296.    command tests whether the user's response  (%V0)  was empty.  If it was,
  6297.    then the File Manager is invoked with "View" as  the  default  selection
  6298.    (\FMV[]); otherwise, the  <Alt-V>  macro  calls  DOS  to  view  the file
  6299.    immediately.
  6300.  
  6301.    5.3.2  Auto-macro Examples
  6302.  
  6303.    >               Clear screen automatically before dialing              <
  6304.    Macro #1:  \ZS ATDT@SF{
  6305.    BOYAN dials a number by simply executing Macro #1, the  dialing command.
  6306.    The @SF variable is used  to  insert  the  System  FON  number  into the
  6307.    command.  To make BOYAN automatically clear the  terminal  screen before
  6308.    dialing, just insert the command \ZS (Zap Screen) into macro #1.
  6309.  
  6310.    >          Remove same-named systems from Queue after connect          <
  6311.    Macro #6:  \UM[%SN (%MS baud): %SF]  \QA-[%SN]
  6312.    When  you  connect  to a system, BOYAN automatically deletes that system
  6313.    from the Redialing Queue.  However, by appending  the  \QA-[%SN] command
  6314.    to  macro #6, you instruct BOYAN to also delete from the Queue any other
  6315.    systems with  a  similar  System  Name.    For example, suppose you have
  6316.    systems named "Bob's BBS Line 1", "Bob's BBS  Line  2",  and  "Bob's BBS
  6317.    Line 3" all in the Queue.  When you connect to any one of those systems,
  6318.    this macro will automatically remove all three systems from the Queue.
  6319.  
  6320.    >        Eliminate the "squawk" BOYAN makes after disconnecting        <
  6321.    Macro #7:  \RC \SK- \UM[| Disconnected after %SL]
  6322.    Simply  delete  the    \AL3[0]   command from the "After  disconnecting"
  6323.    Auto-macro (#7).
  6324.  
  6325.    >     Automatically return to dialing directory after disconnecting    <
  6326.    Macro #7:  \AL3[0] \RC \SK- \UM[| Disconnected after %SL] \DI[]
  6327.    As soon as the  connection's  carrier signal is lost, BOYAN executes its
  6328.    Auto-macro #7.  By adding the  command  "\DI[]"  to the end of macro #7,
  6329.    you instruct BOYAN  to  automatically invoke the dialing directory after
  6330.    disconnecting.
  6331.  
  6332.    >                Automatically log all sessions to disk                <
  6333.    Macro #6: \UM[%SN (%MS baud): %SF]  \LD+[%B:BOYAN%S#.LOG]
  6334.    Macro #7: \AL3[0] \RC \SK- \UM[| Disconnected after %SL]  \LD-
  6335.    If  you  add  these \LD commands to Auto-macros #6 and  #7,  BOYAN  will
  6336.    automatically maintain a  separate,  permanent log file for each dialing
  6337.    directory  entry.    The  log  files  will  be stored in the BOYAN  home
  6338.    directory  (%B:) and  named  BOYAN1.LOG,  BOYAN2.LOG, ...  BOYAN200.LOG,
  6339.    depending on the system's entry number in the  dialing  directory (%S#).
  6340.    The  appropriate  log  file is opened by Macro #6 whenever  you  make  a
  6341.    connection  and closed by Macro #7 (\LD-) as  soon  as  you  disconnect.
  6342.  
  6343.  
  6344.  
  6345.    5.3.2:  BOYAN Power--Macros and Script Files                         107
  6346.    ________________________________________________________________________
  6347.  
  6348.  
  6349.  
  6350.  
  6351.    Thanks to Auto-macro #14 (the "Log file init macro"), a header line will
  6352.    separate the sessions within each system's log file.
  6353.  
  6354.    >             Log each day's sessions to a dated disk file             <
  6355.    Macro #9: ATX4S0=0{  \LD+[%B:%MO-%DA-%YR.LOG]
  6356.    Unlike the previous example, where the  name  of the log file depends on
  6357.    which system you call, this example opens a log file whose  name depends
  6358.    on  the  current  date.  Every time you start BOYAN, this start-up macro
  6359.    (#9) will open a log file in the BOYAN home directory (%B:) named by the
  6360.    current  date, e.g., 05-28-92.LOG on May 28,  1992.    BOYAN's  conclude
  6361.    macro contains the \LD- command, so the log will be closed when you exit
  6362.    BOYAN.
  6363.  
  6364.    >       Automatically fill the redialing queue at BOYAN start-up       <
  6365.    Macro #9:  \DM[ Welcome to BOYAN! ] ATX4S0=0{ \QA[1] \QA[4] \QA[5]
  6366.    Suppose you dial systems 1, 4, and 5  in  your  dialing  directory every
  6367.    time you use BOYAN.  If  you  append  the commands  \QA[1] \QA[4] \QA[5]
  6368.    to  the  BOYAN  start-up  macro  (#9),  then  those three  systems  will
  6369.    automatically  appear in the redialing queue.   You  could  also  append
  6370.    either of the \QE (enter redialing queue) or \QD (begin queue redialing)
  6371.    commands.
  6372.  
  6373.    >           Report the current Action Module name at start-up          <
  6374.    Macro #9: ATX4S0=0{  \ST[Using Action Module: %AN]
  6375.    After initializing the modem with ATX4S0=0 <Return>, this BOYAN start-up
  6376.    macro will display  a  status  message  such  as  "Using  Action Module:
  6377.    VT-100".  The %AN variable holds the name of the current action module.
  6378.  
  6379.    >          Get path confirmation before starting auto-download         <
  6380.    Macro #12: \AT+[\DL[]]
  6381.    Remove the "-" from the default Auto-download macro to make BOYAN   wait
  6382.    for you to confirm the download path before beginning an auto-download.
  6383.  
  6384.    >           Dial multiple systems in the middle of the night           <
  6385.    Macro #99: \QC \QA[Joe] \QA[Liz] \QA[Bob] \PU[3] \QU[6]
  6386.    Macro #7: \UM[| Disconnected after %SL] \QU[6]
  6387.    Let's see how these work.  Macro #99 corresponds to the  <Shift-F9> key.
  6388.    The first thing that happens when you press <Shift-F9> is that the queue
  6389.    is cleared.  Then, the \QA  command  adds  systems to the queue from the
  6390.    Dialing Directory.  \PU tells BOYAN to Pause  Until  3:00  am,  at which
  6391.    point  \QU will tell BOYAN to begin Queue redialing--but to give up at 6
  6392.    am if no connection has been made.
  6393.  
  6394.    If  a  connection  is made, however, then Macro #99 will finish, and the
  6395.    auto-logon script for that  system  (say, JOE.BSC) will take over.  This
  6396.    script  might read your mail on Joe's BBS and capture it to a file,  for
  6397.    example (see section 5.5).  At some point, JOE.BSC logs you off from the
  6398.    BBS.  Here's where macro #7, the "After Disconnecting" Auto-macro, comes
  6399.    into  play.   As soon as the carrier signal drops, Macro  #7  wakes  up,
  6400.  
  6401.  
  6402.  
  6403.    5.3.2:  BOYAN Power--Macros and Script Files                         108
  6404.    ________________________________________________________________________
  6405.  
  6406.  
  6407.  
  6408.  
  6409.    records a message in the usage log, and begins redialing again  with the
  6410.    \QU command.  The systems that remain in the queue (Liz and Bob) will be
  6411.    handled just like Joe's, as  soon  as  a  connection  is made.  At 6 am,
  6412.    queue redialing will stop, even if there are some systems  which haven't
  6413.    yet been reached.
  6414.  
  6415.    5.3.3  Yet More Key Examples!
  6416.  
  6417.    >              Make <Home> call up the BOYAN Command List              <
  6418.    Macro #45: \HE
  6419.  
  6420.    >           Make left mouse button invoke the Dial Directory           <
  6421.    Macro #11: \DI[]
  6422.  
  6423.    >          Make left mouse button run the MOUSMENU.BSC script          <
  6424.    Macro #11: \SC[MOUSMENU]
  6425.    This demonstrates how  you  can  link  the mouse button (or any function
  6426.    key) directly to a script file.
  6427.  
  6428.    >               Make <Alt-D> offer a "Quick-Dialing" bar               <
  6429.    Macro #18: \KV0[DIAL: ] \DI[%V0]
  6430.    If you alter the <Alt-D> keystroke macro (#18) as above, then instead of
  6431.    going  straight  to  the Dialing Directory, <Alt-D> will prompt you with
  6432.    "DIAL:" on  the  Status  Line.    First,  the \KV0 command requests your
  6433.    input,  storing  what  you type in user variable %V0.  Then the \DI[%V0]
  6434.    command dials that number, whether it is the name of  a  system from the
  6435.    Dialing Directory, the code number of a system from the directory,  or a
  6436.    full phone number entered manually.  If you typed only <Enter>, then %V0
  6437.    would  be  empty,  so  \DI[%V0]  conveniently would invoke  the  Dialing
  6438.    Directory.
  6439.  
  6440.    >              Make <Alt-0> "Kill" all BOYAN sound effects             <
  6441.    Macro #69: \BB- \AV[0] \ST[Sound effects Killed.]
  6442.    Now the <Alt-0> command (macro #69) will both turn Beeps & Bells off and
  6443.    set the Alarm Volume to  0.  As a friendly touch, it will also display a
  6444.    status message.
  6445.  
  6446.    >       Make <F9> invoke your editor on the last script file run       <
  6447.    Macro #79: \DC-[%WC %S:%SC]
  6448.    This macro makes a  handy  command  by  combining three macro variables:
  6449.    %WC, which holds the  name  of your word processor/text editor; %S:, the
  6450.    script directory, and %SC, the last script file run.    It  concatenates
  6451.    them to form a string such as "QEDIT  C:\BOY5\SCRIPT\CIS.BSC",  and then
  6452.    executes that string as a DOS Command.  The - in \DC- tells BOYAN not to
  6453.    wait for you to press a key after returning from the editor.
  6454.  
  6455.  
  6456.  
  6457.    5.3.3:  BOYAN Power--Macros and Script Files                         109
  6458.    ________________________________________________________________________
  6459.  
  6460.  
  6461.  
  6462.  
  6463.    >         Make <PgUp> remember the directory of the last upload        <
  6464.    Macro #47: \UL[%T:]
  6465.    BOYAN's normal upload macro,  \UL[],  chooses  your Upload Directory (as
  6466.    specified in Config  Area  <D>)  as  the  default path to search for the
  6467.    upload filename.  This macro tells \UL to search the  path  given by %T:
  6468.    instead, where %T: stores the path used by the previous file transfer.
  6469.  
  6470.    >                Make <End> reset the current modem port               <
  6471.    Macro #46: \CD[%MD]
  6472.    The trick is  to  tell  BOYAN  to  "change devices" to the current modem
  6473.    device--resetting the device  in  the  process.   This is what the <End>
  6474.    keystroke macro (#45) above does.  Running certain external programs may
  6475.    cause the port to "lock up"; if that  happens,  running  this  macro (by
  6476.    pressing <End>) should fix the problem.
  6477.  
  6478.    >            Make <Alt-F5> toggle the "GOSSIP" Action Module           <
  6479.    Macro #105: \IE-%AN,GOSSIP[\AM[G] |ELSE \AM[%AP]]
  6480.    The \AM macro command selects a new BOYAN Action  Module;  for  example,
  6481.    \AM[G] invokes BOYAN's Gossip Mode.  The <Alt-F5> keystroke macro (#105)
  6482.    presented above is  more  sophisticated:    if you are already in Gossip
  6483.    mode,  pressing  <Alt-F5>  again  will  return you to your prior  Action
  6484.    Module.  Here's how it works:  the  \IE-  command  checks  to see If the
  6485.    current  Action module Name, %AN, is not Equal to "GOSSIP".  If they are
  6486.    not equal, then the Gossip Mode  is  invoked by "\AM[G]".  Otherwise, if
  6487.    GOSSIP is the  current  name,  then  the previous module is invoked with
  6488.    "\AM[%AP]".   (The %AP variable remembers  the  previous  Action  module
  6489.    letter.)
  6490.  
  6491.    >            Make <Ctrl-F8> view the contents of a ZIP file            <
  6492.    Macro #88: \FM`pkunzip -V[*.ZIP]
  6493.    This macro invokes the File Manager on all  .ZIP  files  in  the current
  6494.    directory.    The  default  command  for  the  File  Manager is given as
  6495.    PKUNZIP -V, which is the DOS command to view the contents of a ZIP file.
  6496.  
  6497.    >             Make <Ctrl-F9> build a ZIP of selected files             <
  6498.    Macro   #89:\FML[]   \KV0[Build   zip:]  \DC-[pkzip  %V0  "@boymark.lst]
  6499.    \ST[Done!]
  6500.    First,  this macro invokes the File Manager with  the  List  command  as
  6501.    default.  While in the File Manager, you may use the <space> key to mark
  6502.    files, and then  <Enter>  to  list  those files to the BOYMARK.LST file.
  6503.    The  macro then prompts you for the name of the .ZIP file to build,  and
  6504.    invokes  the  DOS  Command PKZIP @BOYMARK.LST to actually build the .ZIP
  6505.    using the filenames in BOYMARK.LST.
  6506.  
  6507.    >            Make <Shift-F10> turn BOYAN into an alarm clock           <
  6508.    Macro #100: \KV0%HR:%MI[Set alarm: ] \UT%V0[\DM[ %HR:%MI:%SE ]] \AL2[3]
  6509.    This  macro   uses  several  advanced  commands.    The  first  command,
  6510.    \KV0%HR:%MI[Set alarm: ], requests keyboard input into user variable %V0
  6511.    with the prompt, "Set alarm: ".  A default of %HR:%MI, the current time,
  6512.  
  6513.  
  6514.  
  6515.    5.3.3:  BOYAN Power--Macros and Script Files                         110
  6516.    ________________________________________________________________________
  6517.  
  6518.  
  6519.  
  6520.  
  6521.    is  provided.   The second  command,  \UT%V0[\DM[ %HR:%MI:%SE ]],  loops
  6522.    Until the Time has become  %V0--which  is  the  time  read  in  from the
  6523.    keyboard.  During each loop it Displays a Message of the current time on
  6524.    the  screen.  When the \UT loop finally  finishes,  the  third  command,
  6525.    \AL2[3], rings an alarm (type 2) for three seconds.
  6526.  
  6527.                                *    *    *    *
  6528.  
  6529.    The macros above are just a small sample  of  the  range  of flexibility
  6530.    BOYAN's built-in macros can offer.  If you write a clever  macro, please
  6531.    submit it for inclusion in the next edition of this manual!
  6532.  
  6533.  
  6534.    5.4  The BOYAN Command Line
  6535.  
  6536.  
  6537.    Normally, you run BOYAN by issuing the simple command  BOYAN  from  DOS.
  6538.    BOYAN's  first  step  is  to  execute Auto-macro #9, the BOYAN  start-up
  6539.    macro.  However, in some cases,  you  may wish to avoid BOYAN's start-up
  6540.    macro.  BOYAN allows  you  to specify an alternative start-up macro when
  6541.    invoking BOYAN, directly from the DOS command line.  For example, if you
  6542.    ran  BOYAN  with  the DOS Command BOYAN ATZ{ , then BOYAN would send the
  6543.    ATZ <Return>  modem  string,  rather  than  executing  macro #9.  If you
  6544.    invoked  BOYAN by typing BOYAN \DI[Boyan Support]  ,  then  BOYAN  would
  6545.    immediately  dial  the specified number.  If  you  ran  BOYAN  with  the
  6546.    command  BOYAN \\  , then BOYAN would do  nothing  at  all  at  start-up
  6547.    (bypassing its normal start-up macro), since \\ signifies  only  a macro
  6548.    comment.    This might be useful if  you  were  already  on-line  before
  6549.    invoking BOYAN.
  6550.  
  6551.    Another application of the command line macro feature is that  BOYAN can
  6552.    be run from  a batch file.  For example, a batch file could invoke BOYAN
  6553.    with the command, BOYAN \MA[9] \SC[NIGHT] .  At  start-up,  BOYAN  would
  6554.    first run macro  #9  (the  normal  start-up macro), and then execute the
  6555.    NIGHT.BSC script file.
  6556.  
  6557.    Your DOS command line may also specify the amount of memory BOYAN should
  6558.    reserve for the DOS Shell.   For  example,  type BOYAN 100 to have BOYAN
  6559.    reserve 100K of memory for the Shell.  A start-up macro could follow the
  6560.    memory specification; e.g., BOYAN 100  \MA[9]  \DI[Boyan  Support] would
  6561.    make BOYAN reserve 100K  of  memory for DOS, execute its normal start-up
  6562.    macro, and finally dial the Boyan Support BBS.
  6563.  
  6564.  
  6565.  
  6566.    5.5:  BOYAN Power--Macros and Script Files                           111
  6567.    ________________________________________________________________________
  6568.  
  6569.  
  6570.  
  6571.  
  6572.    5.5  Script Files
  6573.  
  6574.  
  6575.    BOYAN script files can be created  by  any text editor or word processor
  6576.    which can edit standard text files--for instance, the EDLIN editor which
  6577.    comes with DOS, or the SideKick notepad.   Script  files  must  be named
  6578.    with  a suffix of .BSC, and should be placed in the default BOYAN script
  6579.    directory (although that is not mandatory).
  6580.  
  6581.    The simplest kind of script file is just  a  sequence  of  BOYAN macros.
  6582.    BOYAN processes such a script  file by sequentially evaluating each line
  6583.    of  the  file as a macro, until it reaches the end of the file.    Blank
  6584.    lines  are ignored.  This is the type of script created by BOYAN's auto-
  6585.    matic Script Learn facility.
  6586.  
  6587.    In more complex script files, you may organize the  sequence  of  macros
  6588.    into as many as 500 "blocks."   The start of a  block  is  defined  by a
  6589.    line of text which begins with the  vertical  bar    |    symbol (shift-
  6590.    backslash)  plus a block label.  Labels can be as long as you wish,  but
  6591.    only the first eight characters  are  significant,  e.g.,   MessageReply
  6592.    and  MessageRead  are equivalent labels.  Since case is not significant,
  6593.    |LOGON  and |LogOn also refer to the same block.  All macros following a
  6594.    block label are  considered  a  part  of that block until either another
  6595.    block label or the end of the file is reached.
  6596.  
  6597.    5.5.1  Script-specific Macro Commands
  6598.  
  6599.    The  Macro  Programming Language provides  several  additional  commands
  6600.    specifically  for power in script files.   These  commands  allow  BOYAN
  6601.    scripts to use looping, block nesting, and even recursion.
  6602.  
  6603.    \AB
  6604.    ABort.   Aborts all current script files, just as if you had pressed the
  6605.    <Esc> key.  If the script has a block named *WRAPUP  in  it,  that block
  6606.    will be executed before  you  are returned to terminal mode (see section
  6607.    5.5.4).
  6608.  
  6609.    \BL[label]                                                    \BL[LogOn]
  6610.    BLock.  Calls the block with the specified label.   When  that block has
  6611.    completed, control is returned to the calling macro.
  6612.  
  6613.    \EB                                             \IF+end of messages[\EB]
  6614.    End the current Block.  You can use this within a  conditional statement
  6615.    to end the block prematurely.  See also \EM (End Macro).
  6616.  
  6617.    \GB[label]                                                    \GB[LogOn]
  6618.    Goto Block.  Go directly to  the  block  with the specified label.  When
  6619.    the end of that block is reached, the script is finished; control is not
  6620.    returned to the calling macro.
  6621.  
  6622.  
  6623.  
  6624.    5.5.1:  BOYAN Power--Macros and Script Files                         112
  6625.    ________________________________________________________________________
  6626.  
  6627.  
  6628.  
  6629.  
  6630.    \GS[filename]                                                  \GS[rbbs]
  6631.    \GS[filename;label]                                   \GS[rbbs;messages]
  6632.    Goto  Script.  Go directly to the script  with  the  specified  filename
  6633.    (.BSC  suffix  assumed).   If a  semicolon  and  label  are  given,  the
  6634.    specified block of the script  is executed; otherwise, the entire script
  6635.    runs from start to finish.
  6636.  
  6637.    \KO[x]                                                            \KO[0]
  6638.    Keyboard timeOut.  Set the unattended keyboard timeout to x seconds.  If
  6639.    BOYAN requires keyboard  input  while  a  script file is active, it will
  6640.    wait  x seconds for the user to manually respond.  If there has been  no
  6641.    keyboard  response  after  x seconds, BOYAN goes ahead using the default
  6642.    response.  After the  \KO[0]  command,  for example, BOYAN automatically
  6643.    accepts the default response immediately.
  6644.  
  6645.    %S:                                                     D:\BOYAN\SCRIPT\
  6646.    %SC                                                          PCBOARD.BSC
  6647.    Script  path.    The %S: variable  contains  BOYAN's  script  file  disk
  6648.    drive+path;    %SC  holds  the  name  of  the  currently active (or most
  6649.    recently active) script file.
  6650.  
  6651.    \SC[filename]                                                  \SC[rbbs]
  6652.    \SC[filename;label]                                      \SC[rbbs;LogOn]
  6653.    SCript.   Invoke the script with the  specified  filename  (.BSC  suffix
  6654.    assumed).    If  a semicolon and label are given, the specified block is
  6655.    executed; otherwise, the entire script runs from start to finish.   When
  6656.    that script has completed, control is returned to the calling macro.  If
  6657.    the filename is not preceded by  a  DOS pathname, BOYAN assumes that the
  6658.    script file is located in the default Script directory.
  6659.  
  6660.    5.5.2  Automatic Logon Scripts
  6661.  
  6662.    In section 4.7.3.1, you  saw  how BOYAN's Script Learn Facility could be
  6663.    used to  write  scripts  for  automatic  logging-on  to a system.  BOYAN
  6664.    allows a  completely  hands-free  logon  through  its  dialing directory
  6665.    Script field.  Using the Edit command in the dialing directory,  you can
  6666.    assign each entry a 1-8  character  script  name,  like    PC-BOARD   or
  6667.    MCIMAIL .    The  next  time you connect to the system using the <Alt-D>
  6668.    Dial or <Alt-Q> Queue Redial  commands, BOYAN loads the specified script
  6669.    file (the .BSC suffix is automatically  added).   It then searches for a
  6670.    block labeled |LOGON.  If there  is  a  |LOGON block in the script, then
  6671.    only that block is executed.  Otherwise, the entire script  is processed
  6672.    from beginning to end.
  6673.  
  6674.  
  6675.  
  6676.    5.5.3:  BOYAN Power--Macros and Script Files                         113
  6677.    ________________________________________________________________________
  6678.  
  6679.  
  6680.  
  6681.  
  6682.    5.5.3  Running Script Files
  6683.  
  6684.    BOYAN  can  automatically  process  a  logon script file after making  a
  6685.    connection.  However, you may often need to run a  script  at some other
  6686.    time.    BOYAN  provides  a  number of convenient methods for  executing
  6687.    either an entire script file or just a single block from a script file.
  6688.  
  6689.    When specifying a script file, you may include  the  script's directory,
  6690.    its name (.BSC suffix  assumed),  and optionally a semicolon and a block
  6691.    label.  For example, the following are all valid script specifiers:
  6692.  
  6693.    c:\text\menu;DownLoad
  6694.                         This  specifies  the  drive, directory, script name
  6695.                         (MENU.BSC), and block to execute.
  6696.  
  6697.    RBBS.BSC;LogOn       This  specifies  the LOGON block  of  the  RBBS.BSC
  6698.                         script.  BOYAN will search for this script first in
  6699.                         the Script  Directory (set in Config Area <D>).  If
  6700.                         it is not found there,  BOYAN will also look for it
  6701.                         in the current directory.
  6702.  
  6703.    A:INIT               This  specifies  the  A:INIT.BSC  script,   but  no
  6704.                         particular block.  BOYAN will run the entire script
  6705.                         from start to finish.
  6706.  
  6707.    Besides specifying an auto-logon script, you can run a  script  file  in
  6708.    the following ways:
  6709.  
  6710.       1.  Use BOYAN's <Alt-R> command from terminal mode.   Respond  to the
  6711.           "SCRIPT:" prompt with a specifier  like any of the three examples
  6712.           above.  If your response is  blank,  you will be given the chance
  6713.           to select a script directly from your Script Directory.
  6714.  
  6715.       2.  Select the script  file  directly from the <Alt-F> Directory File
  6716.           Manager (section 4.6.1).  If the file cursor is over a  file with
  6717.           a .BSC suffix, pressing E will execute the script.
  6718.  
  6719.       3.  Use the \SC[filename;label]   command  in  any  BOYAN macro.  For
  6720.           example,  you  could  assign   a   function   key  to  the  macro
  6721.           \SC[tcomm;DownLoad] .    Another  use might be to  set  macro  #9
  6722.           (Start-Up  macro) or macro #10 (Conclude  macro)  to  have  BOYAN
  6723.           automatically run a STARTUP.BSC or CONCLUDE.BSC script  each time
  6724.           it  starts  or  concludes.   You can also invoke  a  script  file
  6725.           directly from the DOS command line, as described above in section
  6726.           5.4.
  6727.  
  6728.  
  6729.  
  6730.    5.5.4:  BOYAN Power--Macros and Script Files                         114
  6731.    ________________________________________________________________________
  6732.  
  6733.  
  6734.  
  6735.  
  6736.    5.5.4  During Script Execution
  6737.  
  6738.    Once  a script file takes control, the  BOYAN v5  message in the  middle
  6739.    of the status line disappears, and  the  script file name flashes in its
  6740.    place.  When this happens, BOYAN is "unattended" and its normal terminal
  6741.    mode commands are disabled.  To regain control before  the  script  file
  6742.    finishes, you must press the <Esc> key.
  6743.  
  6744.    The <Tab> key also has a  special  function during script execution.  If
  6745.    you press <Tab>, the script stops whatever task it is  in  the middle of
  6746.    and jumps to  the  block  labelled  *TAB.    It  is as if pressing <Tab>
  6747.    inserts the command \GB[*TAB] into the middle of your script.   The Host
  6748.    Mode  script  uses  this feature to make the Sysop Menu available at all
  6749.    times.
  6750.  
  6751.    Another special script block is the *WRAPUP block.   Whenever  a  script
  6752.    finishes, either normally or by <Esc>, BOYAN searches for and executes a
  6753.    block in that script  named  *WRAPUP.  Consult HOST.BSC and ETCH.BSC for
  6754.    examples of how to use *WRAPUP.
  6755.  
  6756.    5.5.5  Script Examples
  6757.  
  6758.    Several  sample  script  files are included on  the  BOYAN  Distribution
  6759.    Diskettes.  These scripts are well-commented, so by  studying  them, you
  6760.    can learn a lot about writing your own scripts.
  6761.  
  6762.     - CIS.BSC  is a simple script file for logging  on  to  the  CompuServe
  6763.       Information Service.  You must use a text editor to include  your own
  6764.       CompuServe ID in the script file.
  6765.  
  6766.     - ETCH.BSC demonstrates macro screen  control  by  turning BOYAN into a
  6767.       computer etch-a-sketch!  After invoking this script (with the <Alt-R>
  6768.       command), use the I,J,K, and M keys to "draw" on  the  screen.  Press
  6769.       <Esc> to exit the script.
  6770.  
  6771.     - HOST.BSC contains the complete BOYAN Host Mode.  This script  is very
  6772.       complex,  using  extensive  branching,  file transfers, DOS commands,
  6773.       macro arithmetic, and  BOYAN  Auto-macros.  Section 4.8 describes how
  6774.       to use the Host Mode.
  6775.  
  6776.     - PCBOARD.BSC is a simple logon script file for the  PC-Board  type  of
  6777.       Bulletin Board System.  It expects that macro #72 (the <F2> keystroke
  6778.       macro) contains your full name +  the  { symbol.  By configuring this
  6779.       keystroke macro and entering your password into the Dialing Directory
  6780.       entry, you do away with the need to edit the PCBOARD.BSC file.
  6781.  
  6782.  
  6783.  
  6784.    5.5.5:  BOYAN Power--Macros and Script Files                         115
  6785.    ________________________________________________________________________
  6786.  
  6787.  
  6788.  
  6789.  
  6790.     - TCOMM.BSC  is  a  logon script file for TComm Bulletin Board Systems.
  6791.       It also expects your name + { to be stored in macro #72.  This script
  6792.       demonstrates  a  very  flexible  method  for  responding  to  prompts
  6793.       regardless of the order in which they arrive.
  6794.  
  6795.     - VARS.BSC displays the 36 user variables in two full-screen displays.
  6796.  
  6797.    BOYAN's Trace Mode  (section  5.2.17)  is  a terrific aid in following a
  6798.    script as it runs.  Many other script files written  by  BOYAN users are
  6799.    available for downloading from the BOYAN Support BBS.
  6800.  
  6801.    5.5.6  Technical Notes
  6802.  
  6803.    5.5.6.1  The Macro Compiler
  6804.  
  6805.    Macros are automatically compiled as they are run; there is  no separate
  6806.    compiling stage.
  6807.  
  6808.    When  interpreting  text  enclosed  in  brackets, the compiler  makes  a
  6809.    distinction depending on whether the text is a [string] or a [macro]:
  6810.  
  6811.     - In a string, the first unquoted right bracket always denotes  the end
  6812.       of the string; in order to  include  a right bracket inside a string,
  6813.       you must precede the bracket with a quotation mark.  For  example, to
  6814.       make BOYAN WaitFor the "Press  [Enter] to continue" message, you must
  6815.       write:
  6816.  
  6817.            \WF[Press [Enter"] to continue]
  6818.  
  6819.       As  a string is compiled, all macro variables  contained  in  it  are
  6820.       expanded.
  6821.  
  6822.     - However, in commands which  have  a [macro] in their syntax (the \RE,
  6823.       \UN, \UT, and all conditional commands),  the  compiler automatically
  6824.       matches  internal brackets.  For example, to  REpeat  (5  times)  the
  6825.       command \RX[1] \RY[1], you would simply write,
  6826.  
  6827.            \RE5[\RX[1] \RY[1]]
  6828.  
  6829.       without  having  to  quote  the  brackets inside.  Variables are  not
  6830.       expanded inside macros; for example, the macro
  6831.  
  6832.            \UT`12:00[\DM[%HR:%MI:%SE]]
  6833.  
  6834.       displays a running clock  on  the screen until noon, rather than just
  6835.       displaying  whatever  the  time  was  when you first invoked the  \UT
  6836.       command.
  6837.  
  6838.  
  6839.  
  6840.    5.5.6.1:  BOYAN Power--Macros and Script Files                       116
  6841.    ________________________________________________________________________
  6842.  
  6843.  
  6844.  
  6845.  
  6846.    The macro processor ignores spaces and tabs between macro commands.   If
  6847.    you actually want to send a number of spaces to the modem, add a "dummy"
  6848.    backquote following those spaces, as in
  6849.  
  6850.         here come five spaces     `
  6851.  
  6852.    Alternatives are to precede each space with a quotation mark, or  to use
  6853.    the macro \CH[32].
  6854.  
  6855.    5.5.6.2  Variable Prefixes: % vs. @
  6856.  
  6857.    BOYAN  Macro  Variables may be referred to with either the %  or  the  @
  6858.    prefix.    When  a variable is specified by %, then  any  special  macro
  6859.    command characters (such as ^ % @ \ ` ,  etc.)  are automatically quoted
  6860.    with ".  When specified by @, no extra quoting is done.
  6861.  
  6862.    For example, assume that variable V0 holds the string D:\UL.  If a macro
  6863.    referred to  that  variable  as  %V0,  BOYAN  would add a quotation mark
  6864.    before the \, as it does before every special character.    As a result,
  6865.    BOYAN would  send  the  literal  string D:\UL to the modem.  It does not
  6866.    treat \UL like a macro command, but rather like a bunch of characters.
  6867.  
  6868.    Now, change the % to  a @, making the variable @V0.  In this case, BOYAN
  6869.    does not add  a  quotation mark before the \.  It would send the D and :
  6870.    over  the  modem  and report a syntax error on the  \UL  macro  command.
  6871.    Thus, one use  for the @ variable prefix is to execute the contents of a
  6872.    variable as if they made  up  a  BOYAN  macro.   This is why the Dialing
  6873.    Command refers to the System Fon number as @SF rather than  %SF--so that
  6874.    Shortcut  macros,  etc.  may be used within the phone number.  A similar
  6875.    application of the @ prefix can be seen in the <Alt-M> macro.
  6876.  
  6877.    Another use  of  the  @  prefix is to force the evaluation of a variable
  6878.    which is used within another variable.  For example, suppose at  1:15 pm
  6879.    you set V1 and V2 as follows:
  6880.  
  6881.    \SV1[Time is %HR:%MI]
  6882.                         (This sets V1 = Time is 13:15.)
  6883.    \SV2[Time is "%HR:"%MI]
  6884.                         (This sets V2 = Time is %HR:%MI.)
  6885.  
  6886.    If you displayed these variables on the monitor five minutes  later, you
  6887.    would get the following results:
  6888.  
  6889.    \DM[%V1]             displays, Time is 13:15
  6890.    \DM[@V1]             displays, Time is 13:15
  6891.    \DM[%V2]             displays, Time is %HR:%MI
  6892.    \DM[@V2]             displays, Time is 13:20
  6893.  
  6894.  
  6895.  
  6896.    5.6:  BOYAN Power--Macros and Script Files                           117
  6897.    ________________________________________________________________________
  6898.  
  6899.  
  6900.  
  6901.  
  6902.    The  automatic  quoting  done in interpreting  %V2  means  that  %HR  is
  6903.    displayed, not evaluated.  In  contrast, @V2 substitutes the contents of
  6904.    V2 directly into the \DM[..] command, so %HR and %MI are evaluated.
  6905.  
  6906.  
  6907.    5.6  Summary of Macro Variables
  6908.  
  6909.  
  6910.    %AM          The menu letter corresponding to the current Action Module
  6911.  
  6912.    %AN          The full Name of the current Action module
  6913.  
  6914.    %AP          The menu letter corresponding to the Previous Action module
  6915.  
  6916.    %AU          current state of AUto-downloading, "ON" or "OFF"
  6917.  
  6918.    %B:          The complete path of the BOYAN directory
  6919.  
  6920.    %B8          "ON"  when  eighth  Bit  allowed,  "OFF"  when  eighth  Bit
  6921.                 stripped
  6922.  
  6923.    %BB          current Beeps and Bells setting, "ON" or "OFF"
  6924.  
  6925.    %BD          "ON" when Backspace key  sends  DEL,  "OFF"  when backspace
  6926.                 sends BS
  6927.  
  6928.    %BU          "ON" when 16550AN UART  FIFO  buffering  is  enabled, "OFF"
  6929.                 when disabled
  6930.  
  6931.    %C:          The complete path of the Current directory
  6932.  
  6933.    %D:          The complete path of the default Download directory
  6934.  
  6935.    %DA          The current DAy of the month (01,02,..31)
  6936.  
  6937.    %DM          The current color used for Displaying macro Messages
  6938.  
  6939.    %DN          The Name of the screen Dump file
  6940.  
  6941.    %DP          The Default Protocol
  6942.  
  6943.    %DR          The letter corresponding to the currently-logged DRive
  6944.  
  6945.    %DS          The amount of memory (in K) available for DOS Shells
  6946.  
  6947.    %EC          Current ECho keyboard setting, "ON" or "OFF"
  6948.  
  6949.    %F:          The  complete  path  where  BOYAN  expects  to   find  .FON
  6950.                 Directories
  6951.  
  6952.  
  6953.  
  6954.    5.6:  BOYAN Power--Macros and Script Files                           118
  6955.    ________________________________________________________________________
  6956.  
  6957.  
  6958.  
  6959.  
  6960.    %FD          The name of the current .FON Directory
  6961.  
  6962.    %GL          The number of Grabbed screen Lines (25, 43, or 50)
  6963.  
  6964.    %HR          The current HouR (00,01,..23)
  6965.  
  6966.    %II          The  position  of  string1  as  a   substring   of  string2
  6967.                 determined by the last \II macro
  6968.  
  6969.    %IK          The last Input Key typed at the keyboard
  6970.  
  6971.    %IM          %II Minus one
  6972.  
  6973.    %LC          The List Command (DOS command to list a file)
  6974.  
  6975.    %LD          "ON" if currently Logging  to  Disk,  "OFF"  if no log file
  6976.                 open
  6977.  
  6978.    %LF          "ON" if LineFeeds are being added to CR's, "OFF" if not
  6979.  
  6980.    %LN          The Name of the most recently-selected Log file
  6981.  
  6982.    %LV          The Length  of the Variable most recently accessed with the
  6983.                 \LV command
  6984.  
  6985.    %MA          The current Modem port Address, in hexadecimal (without the
  6986.                 $ sign)
  6987.  
  6988.    %MC          The current Menu Color (1..127)
  6989.  
  6990.    %MD          The number of the current Modem Device (1..4)
  6991.  
  6992.    %MI          The current MInute (00,01,..59)
  6993.  
  6994.    %MM          Maximum Modem speed as entered in Config Area <C>
  6995.  
  6996.    %MN          The current Modem iNterrupt IRQ line (2..5)
  6997.  
  6998.    %MO          The current MOnth (01,02,..12)
  6999.  
  7000.    %MP          The letter corresponding to the current Modem Parity (N, E,
  7001.                 or O)
  7002.  
  7003.    %MS          The current Modem Speed (300..38400)
  7004.  
  7005.    %NC          The current Normal text Color (1..127)
  7006.  
  7007.    %NK          Current Numlock setting, "ON" or "OFF"
  7008.  
  7009.  
  7010.  
  7011.    5.6:  BOYAN Power--Macros and Script Files                           119
  7012.    ________________________________________________________________________
  7013.  
  7014.  
  7015.  
  7016.  
  7017.    %P:          The complete path of the external Protocol directory
  7018.  
  7019.    %PR          Current PRinter log setting, "ON" or "OFF"
  7020.  
  7021.    %PW          Your PassWord for the currently online system
  7022.  
  7023.    %QS          The Queue  Size  (number  of  entries  in  redialing queue,
  7024.                 0..20)
  7025.  
  7026.    %RE          The counter number  of  the  innermost  \RE  (REpeat) macro
  7027.                 command
  7028.  
  7029.    %S:          The complete path of the Script file directory
  7030.  
  7031.    %S#          The phone directory code  number  of  the  currently online
  7032.                 System (1..200, or 0 if dialed manually or not online)
  7033.  
  7034.    %SC          The name of the current SCript file running (or last script
  7035.                 file run)
  7036.  
  7037.    %SE          The current SEcond (0..59)
  7038.  
  7039.    %SF          The phone number of the currently online System
  7040.  
  7041.    %SK          The Secondary Keyset (scroll lock) setting, "ON" or "OFF"
  7042.  
  7043.    %SL          The  Length  of  time since the last connection to a remote
  7044.                 System
  7045.  
  7046.    %SN          The Name of the currently  online  System  (or  "Manual" if
  7047.                 dialed manually)
  7048.  
  7049.    %SS          The  name  of  the logon Script file  (not  including  .BSC
  7050.                 suffix) of the currently online System
  7051.  
  7052.    %T:          The complete path of the most recent file Transfer
  7053.  
  7054.    %TF          The name of the most recent File selected to be Transferred
  7055.  
  7056.    %TI          A string  with  Transfer  time  Information,  suitable  for
  7057.                 including in BOYAN.USE usage log
  7058.  
  7059.    %TR          Current TRace mode setting, "ON" or "OFF"
  7060.  
  7061.    %TT          Current Translation Table setting, "ON" or "OFF"
  7062.  
  7063.    %U:          The complete path of the default Upload directory
  7064.  
  7065.  
  7066.  
  7067.    5.6:  BOYAN Power--Macros and Script Files                           120
  7068.    ________________________________________________________________________
  7069.  
  7070.  
  7071.  
  7072.  
  7073.    %UD          This variable equals "UL" if  the last file transfer was an
  7074.                 upload, or "DL" if the last file transfer was a download
  7075.  
  7076.    %UF          Current Usage File log status ("ON" or "OFF")
  7077.  
  7078.    %UN          The Name of the current Usage file
  7079.  
  7080.    %V0          Macro variable #0
  7081.  
  7082.    %V1          Macro variable #1
  7083.  
  7084.    %V2          Macro variable #2
  7085.  
  7086.    . . .
  7087.  
  7088.    %V8          Macro variable #8
  7089.  
  7090.    %V9          Macro variable #9
  7091.  
  7092.    %VA          Macro variable A
  7093.  
  7094.    %VB          Macro variable B
  7095.  
  7096.    . . .
  7097.  
  7098.    %VY          Macro variable Y
  7099.  
  7100.    %VZ          Macro variable Z
  7101.  
  7102.    %WC          The Word processor Command (DOS command to edit a file)
  7103.  
  7104.    %XP          The current X-position of the cursor (1..80)
  7105.  
  7106.    %YP          The current Y-position of the cursor (1..49)
  7107.  
  7108.    %YR          The current year (91,92,..)
  7109.  
  7110.  
  7111.    5.7  Summary of Macro Commands
  7112.  
  7113.  
  7114.    \\                   signifies that the  rest  of the line is a comment,
  7115.                         not to be processed as a macro
  7116.  
  7117.    ^c                   send control character to modem
  7118.  
  7119.    {                    send <Return> character to modem (same as ^M)
  7120.  
  7121.    ~                    pause one-half second
  7122.  
  7123.  
  7124.  
  7125.    5.7:  BOYAN Power--Macros and Script Files                           121
  7126.    ________________________________________________________________________
  7127.  
  7128.  
  7129.  
  7130.  
  7131.    \!                   Invoke Shortcut macro #111
  7132.  
  7133.    \@                   Invoke Shortcut macro #112
  7134.  
  7135.    \#                   Invoke Shortcut macro #113
  7136.  
  7137.    \$                   Invoke Shortcut macro #114
  7138.  
  7139.    \%                   Invoke Shortcut macro #115
  7140.  
  7141.    \^                   Invoke Shortcut macro #116
  7142.  
  7143.    \&                   Invoke Shortcut macro #117
  7144.  
  7145.    \*                   Invoke Shortcut macro #118
  7146.  
  7147.    \(                   Invoke Shortcut macro #119
  7148.  
  7149.    \)                   Invoke Shortcut macro #120
  7150.  
  7151.    \AB                  ABort current macro or script file
  7152.  
  7153.    \AD+                 Turn on Auto-Detection of modem connect speed
  7154.  
  7155.    \AD-                 Turn off Auto-Detection of modem connect speed
  7156.  
  7157.    \AD*                 Toggle between \AD+ and \AD-
  7158.  
  7159.    \AFfilename[string]  Append string to the  end  of  specified  text File
  7160.                         (creating file if not found)
  7161.  
  7162.    \ALx[]               Sound ALarm x (1,2,or 3) until a key is pressed
  7163.  
  7164.    \ALx[0]              Sound ALarm x (1,2,or 3) just once
  7165.  
  7166.    \ALx[y]              Repeatedly sound ALarm x (1,2,or 3) for y seconds
  7167.  
  7168.    \AM[]                Select a new BOYAN Action Module from a menu
  7169.  
  7170.    \AM[c]               Activate  the BOYAN Action Module corresponding  to
  7171.                         the character c
  7172.  
  7173.    \AT+[macro]          Do macro  if  BOYAN  is  ATtended  (no  script file
  7174.                         running)
  7175.  
  7176.    \AT-[macro]          Do macro if  BOYAN  is  not  ATtended  (script file
  7177.                         running)
  7178.  
  7179.    \AU+                 Turn AUto-downloading on
  7180.  
  7181.  
  7182.  
  7183.    5.7:  BOYAN Power--Macros and Script Files                           122
  7184.    ________________________________________________________________________
  7185.  
  7186.  
  7187.  
  7188.  
  7189.    \AU-                 Turn AUto-downloading off
  7190.  
  7191.    \AU*                 Toggle AUto-downloading
  7192.  
  7193.    \AV[x]               Set Alarm Volume to x (0..10, 10 highest)
  7194.  
  7195.    \B8+                 Accept Bit 8 of incoming characters (no stripping)
  7196.  
  7197.    \B8-                 Strip Bit 8 from incoming characters
  7198.  
  7199.    \B8*                 Toggle between \B8+ and \B8-
  7200.  
  7201.    \BB+                 Turn Beeps & Bells on
  7202.  
  7203.    \BB-                 Turn Beeps & Bells off
  7204.  
  7205.    \BB*                 Toggle Beeps & Bells
  7206.  
  7207.    \BC                  Back over Character, but do not put  character into
  7208.                         backspace buffer
  7209.  
  7210.    \BD+                 Swap the Backspace and DEL keys
  7211.  
  7212.    \BD-                 "Unswap" the Backspace and DEL keys
  7213.  
  7214.    \BD*                 Toggle between \BD+ and \BD-
  7215.  
  7216.    \BL[label]           Script  file  --  call  the  labelled  BLock  as  a
  7217.                         subroutine
  7218.  
  7219.    \BU+                 Enable BUffering on the 16550AN UART
  7220.  
  7221.    \BU-                 Disable BUffering on the 16550AN UART
  7222.  
  7223.    \BU*                 Toggle between \BU+ and \BU-
  7224.  
  7225.    \BW+                 Back  over Word,  putting  erased  characters  into
  7226.                         backspace buffer
  7227.  
  7228.    \BW-                 Back  over Word, without putting erased  characters
  7229.                         into backspace buffer
  7230.  
  7231.    \CA+[macro]          Do macro only if there is a CArrier signal (online)
  7232.  
  7233.    \CA-[macro]          Do  macro  only  if  there  is  no  CArrier  signal
  7234.                         (offline)
  7235.  
  7236.    \CB[]                Configure BOYAN, main configuration menu
  7237.  
  7238.  
  7239.  
  7240.    5.7:  BOYAN Power--Macros and Script Files                           123
  7241.    ________________________________________________________________________
  7242.  
  7243.  
  7244.  
  7245.  
  7246.    \CB[c]               Configure BOYAN, go directly to Config Area [c]
  7247.  
  7248.    \CC+                 Do  Check  for  Carrier  signal before dialing, and
  7249.                         prompt user to verify "dialing despite carrier"
  7250.  
  7251.    \CC-                 Do not Check for Carrier signal before dialing, and
  7252.                         dial right away
  7253.  
  7254.    \CC*                 Toggle between \CC+ and \CC-
  7255.  
  7256.    \CD[x]               Change Device to 1,2,3,or 4 (Comm port #)
  7257.  
  7258.    \CF+                 Check Free disk space before downloads and  in file
  7259.                         manager
  7260.  
  7261.    \CF-                 Do not Check Free disk space  before  downloads and
  7262.                         in file manager
  7263.  
  7264.    \CF*                 Toggle between \CF+ and \CF-
  7265.  
  7266.    \CH[x]               Send the ASCII CHaracter with code x  (0..255) over
  7267.                         the modem
  7268.  
  7269.    \CM                  Change Menu  --  for  changing  device,  speed,  or
  7270.                         parity
  7271.  
  7272.    \CO[x]               Set the COnnect wait time to x seconds (0..99)
  7273.  
  7274.    \CP[c]               Change Parity to [N]one, [E]ven, or [O]dd.
  7275.  
  7276.    \CS[x]               Change Speed to 300, 1200, 2400, 4800, 9600, 19200,
  7277.                         or 38400.
  7278.  
  7279.    \CT+                 Turn CTS/RTS flow control on
  7280.  
  7281.    \CT-                 Turn CTS/RTS flow control off
  7282.  
  7283.    \CT*                 Toggle CTS/RTS flow control
  7284.  
  7285.    \DC[string]          Execute string as a Dos  Command,  prompting  for a
  7286.                         user keypress if not inside a script file
  7287.  
  7288.    \DC+[string]         Execute  string  as a Dos  Command,  prompting  for
  7289.                         keypress afterward
  7290.  
  7291.    \DC-[string]         Execute string  as a Dos Command, but do not prompt
  7292.                         for a keypress afterward
  7293.  
  7294.    \DD+                 Do Drop the DTR signal when you exit from BOYAN
  7295.  
  7296.  
  7297.  
  7298.    5.7:  BOYAN Power--Macros and Script Files                           124
  7299.    ________________________________________________________________________
  7300.  
  7301.  
  7302.  
  7303.  
  7304.    \DD-                 Do not Drop the DTR signal when you exit from BOYAN
  7305.  
  7306.    \DD*                 Toggle between \DD+ and \DD-
  7307.  
  7308.    \DI[]                Invoke BOYAN DIaling Directory
  7309.  
  7310.    \DI[x]               DIal  entry  #  x  (1..200)  from  current  dialing
  7311.                         directory
  7312.  
  7313.    \DI[string]          DIal  the first dialing directory entry whose  name
  7314.                         contains string
  7315.  
  7316.    \DI[###-####]        Manually DIal the phone number specified
  7317.  
  7318.    \DL[]                Download file, prompting for protocol and filename
  7319.  
  7320.    \DL-[]               Download file immediately  using  default protocol,
  7321.                         bypassing all prompts
  7322.  
  7323.    \DLc[]               Download file using protocol c
  7324.  
  7325.    \DLc-[]              Download   file   immediately   using  protocol  c,
  7326.                         bypassing all prompts
  7327.  
  7328.    \DL[filename]        Download  specified  file using  default  protocol,
  7329.                         prompting for confirmation
  7330.  
  7331.    \DL-[filename]       Download specified file, bypassing all prompts
  7332.  
  7333.    \DLc[filename]       Download specified file using protocol c, prompting
  7334.                         for confirmation
  7335.  
  7336.    \DLc-[filename]      Download specified file using protocol c, bypassing
  7337.                         all prompts
  7338.  
  7339.    \DMC[x]              Set Display Message Color to  x  (1..255).   Colors
  7340.                         above 128 are flashing.
  7341.  
  7342.    \DM[string]          Display Message string flushed right one line above
  7343.                         current line
  7344.  
  7345.    \DMy[string]         Display  Message  string flushed right  on  line  y
  7346.                         (1..49) of screen
  7347.  
  7348.    \DMx,[string]        Display Message string at column x, one  line above
  7349.                         current line
  7350.  
  7351.    \DMx,y[string]       Display  Message  string  at  position x (1..80), y
  7352.                         (1..49)
  7353.  
  7354.  
  7355.  
  7356.    5.7:  BOYAN Power--Macros and Script Files                           125
  7357.    ________________________________________________________________________
  7358.  
  7359.  
  7360.  
  7361.  
  7362.    \DP[c]               Set Default Protocol for file transfers to c
  7363.  
  7364.    \DT+                 Turn modem DTR signal ON
  7365.  
  7366.    \DT-                 Turn modem DTR signal OFF
  7367.  
  7368.    \DT*                 Toggle modem DTR signal
  7369.  
  7370.    \DVc[x]              Delete the  first  x  characters  from  variable  c
  7371.                         (0..9,A..Z)
  7372.  
  7373.    \EB                  End current Block of script file
  7374.  
  7375.    \EC+                 Do ECho keyboard locally
  7376.  
  7377.    \EC-                 Do not ECho keyboard locally
  7378.  
  7379.    \EC*                 Toggle between \EC+ and \EC-
  7380.  
  7381.    \EM                  End the current  Macro  (advance  to  next  line of
  7382.                         script)
  7383.  
  7384.    \EX                  EXit  BOYAN  immediately.  (Be  careful  with  this
  7385.                         one!)
  7386.  
  7387.    \FC                  Forward Character  --  send  most  recent character
  7388.                         saved in Backspace buffer
  7389.  
  7390.    \FD[filename]        Load filename as the new .FON Dialing Directory.
  7391.  
  7392.    \FE+filename[macro]  Do macro only if filename exists
  7393.  
  7394.    \FE-filename[macro]  Do macro only if filename does not exist
  7395.  
  7396.    \FM[filename]        Invoke BOYAN's File Manager.    Filename  can  be a
  7397.                         complete drive, path, and file  specification (with
  7398.                         wildcards).
  7399.  
  7400.    \FMc[filename]       Invoke File Manager as above, but make  <Enter> the
  7401.                         same as selecting option c
  7402.  
  7403.    \FMstring[filename]  Invoke  File  Manager as above,  but  make  <Enter>
  7404.                         apply  the  DOS  command  string  to  the  selected
  7405.                         file(s)
  7406.  
  7407.    \FS[c]               Show Free Space on specified disk drive
  7408.  
  7409.    \FW                  Forward  Word --  send  characters  from  Backspace
  7410.                         buffer until reaching a space
  7411.  
  7412.  
  7413.  
  7414.    5.7:  BOYAN Power--Macros and Script Files                           126
  7415.    ________________________________________________________________________
  7416.  
  7417.  
  7418.  
  7419.  
  7420.    \GB[label]           Go  to  Block specified by  label  (within  current
  7421.                         script)
  7422.  
  7423.    \GL+                 Grab screen  Lines ON (43 with EGA monitor, 50 with
  7424.                         VGA)
  7425.  
  7426.    \GL-                 Grab screen Lines OFF (return to 25-line screen)
  7427.  
  7428.    \GL*                 Toggle between \GL+ and \GL-
  7429.  
  7430.    \GS[filename]        Go to Script filename (.BSC extension optional)
  7431.  
  7432.    \GS[filename;label]  Go to Script filename, block label
  7433.  
  7434.    \GVc[]               Close the text file read by \GVc[filename]
  7435.  
  7436.    \GVc[filename]       Get  next  line   from  specified  text  file  into
  7437.                         variable c
  7438.  
  7439.    \GX[x]               Go to X position x (1..80)
  7440.  
  7441.    \GY[y]               Go to Y position y (1..49)
  7442.  
  7443.    \HE                  Call up  HElp  screen  (from  "Communication Ready"
  7444.                         screen only)
  7445.  
  7446.    \HK                  Call up Help on function Key descriptions
  7447.  
  7448.    \HU                  Hang up modem
  7449.  
  7450.    \IE+str1,str2[macro] Do macro only If str1 Equals str2 (upper/lower case
  7451.                         not significant)
  7452.  
  7453.    \IE-str1,str2[macro] Do macro only If str1 does not Equal str2
  7454.  
  7455.    \IF+string[macro]    Do macro only If string Found on current line or on
  7456.                         line above
  7457.  
  7458.    \IF-string[macro]    Do macro only  If  string not Found on current line
  7459.                         or on line above
  7460.  
  7461.    \II+string1,string2[macro]
  7462.                         Do macro only If  string1  is  found as a substring
  7463.                         Inside string2
  7464.  
  7465.    \II-string1,string2[macro]
  7466.                         Do  macro  only  If  string1  is  not  found  as  a
  7467.                         substring Inside string2
  7468.  
  7469.  
  7470.  
  7471.    5.7:  BOYAN Power--Macros and Script Files                           127
  7472.    ________________________________________________________________________
  7473.  
  7474.  
  7475.  
  7476.  
  7477.    \IK+[macro]          Do macro only If a Key has been pressed
  7478.  
  7479.    \IK-[macro]          Do macro only If no Key has been pressed
  7480.  
  7481.    \IP+c[macro]         Do macro only If Protocol c is available
  7482.  
  7483.    \IP-c[macro]         Do macro only If Protocol c is not available
  7484.  
  7485.    \IS+x,y,...,z[macro] Do macro  only  If  the  current  System  number is
  7486.                         x,y,..., or z
  7487.  
  7488.    \IS-x,y,...,z[macro] Do macro only  If  the current System number is not
  7489.                         x,y,..., or z
  7490.  
  7491.    \IT+[macro]          Do macro only  If  most  recent  file  Transfer was
  7492.                         successful
  7493.  
  7494.    \IT-[macro]          Do macro only  If  most  recent  file  Transfer was
  7495.                         unsuccessful
  7496.  
  7497.    \IVc+string[macro]   Do  macro  only if variable  c  (0..9,A..Z)  equals
  7498.                         string (upper/lower case not significant)
  7499.  
  7500.    \IVc-string[macro]   Do macro only if variable  c  (0..9,A..Z)  does not
  7501.                         equal string
  7502.  
  7503.    \IW+[macro]          Do macro only If  last  "WF"  or  other handshaking
  7504.                         command was successful
  7505.  
  7506.    \IW-[macro]          Do macro only If  last  "WF"  or  other handshaking
  7507.                         command was unsuccessful
  7508.  
  7509.    \JD                  Jump to DOS.  Requires  user to type EXIT to return
  7510.                         to BOYAN.
  7511.  
  7512.    \KO[x]               Set unattended Keyboard timeOut to x seconds
  7513.  
  7514.    \KS                  Keep Screen contents in  internal  buffer  and stop
  7515.                         displaying incoming data from the modem, until \RS
  7516.  
  7517.    \KVc[string]         Read variable x (0..9,A..Z) from keyboard, prompted
  7518.                         by string
  7519.  
  7520.    \KVcstring1[string2] Read variable c (0..9,A..Z) from keyboard, prompted
  7521.                         by string2 and using string1 as a default
  7522.  
  7523.    \LD+                 Log to Disk (using default Log File name)
  7524.  
  7525.    \LD+[filename]       Log to Disk using specified filename
  7526.  
  7527.  
  7528.  
  7529.    5.7:  BOYAN Power--Macros and Script Files                           128
  7530.    ________________________________________________________________________
  7531.  
  7532.  
  7533.  
  7534.  
  7535.    \LD-                 Turn off logging to disk
  7536.  
  7537.    \LD*                 Toggle between \LD+ and \LD-
  7538.  
  7539.    \LD*[filename]       Toggle between \LD+[filename] and \LD-
  7540.  
  7541.    \LF+                 Add LineFeeds to carriage returns
  7542.  
  7543.    \LF-                 Do not add LineFeeds to carriage returns
  7544.  
  7545.    \LF*                 Toggle between \LF+ and \LF-
  7546.  
  7547.    \LM[string]          Log Message -- insert string into current log file
  7548.  
  7549.    \LVc[]               Store the Length of Variable c (0..9,A..Z) in %LV
  7550.  
  7551.    \LVc[x]              Set the Length  of  Variable  c  (0..9,A..Z)  to be
  7552.                         exactly x (0..80) characters
  7553.  
  7554.    \MA[x]               Do BOYAN MAcro number x (1..120)
  7555.  
  7556.    \MC[x]               Set Menu Color to x (1..127)
  7557.  
  7558.    \MVc[y]              Set Variable c (0..9,A..z) to the contents of Macro
  7559.                         y (1..120)
  7560.  
  7561.    \NC[x]               Set Normal text Color to x (1..127)
  7562.  
  7563.    \ND[string]          New Drive/Directory
  7564.  
  7565.    \NK+                 Turn Numlock ON
  7566.  
  7567.    \NK-                 Turn Numlock OFF
  7568.  
  7569.    \NK*                 Toggle Numlock
  7570.  
  7571.    \PA[x]               Pause for x (1..32767) seconds
  7572.  
  7573.    \PL                  Purge line (discard receive buffer)
  7574.  
  7575.    \PM[string]          Print message string on printer
  7576.  
  7577.    \PP[x]               Select printer port x (1..4)
  7578.  
  7579.    \PR+                 Turn printer logging on
  7580.  
  7581.    \PR-                 Turn printer logging off
  7582.  
  7583.    \PR*                 Toggle printer logging
  7584.  
  7585.  
  7586.  
  7587.    5.7:  BOYAN Power--Macros and Script Files                           129
  7588.    ________________________________________________________________________
  7589.  
  7590.  
  7591.  
  7592.  
  7593.    \PS                  Print Screen
  7594.  
  7595.    \PU[xx:yy]           Pause Until specified time (use 24-hour notation)
  7596.  
  7597.    \QA[x]               Add entry # x (1..200) to the redialing Queue
  7598.  
  7599.    \QA[###-####]        Add  the  specified  phone  number to the redialing
  7600.                         Queue
  7601.  
  7602.    \QA[string]          Add the first dialing  directory  entry  whose name
  7603.                         contains string to the redialing Queue
  7604.  
  7605.    \QA+[string]         Add  every  dialing  directory  entry   whose  name
  7606.                         contains string to the redialing Queue
  7607.  
  7608.    \QA-[x]              Delete entry # x (1..200) from the Queue
  7609.  
  7610.    \QA-[string]         Delete  from  the  Queue  every  entry  whose  name
  7611.                         contains string
  7612.  
  7613.    \QC                  Queue Clear -- wipe out the redialing queue
  7614.  
  7615.    \QD                  Queue Dial -- redial  from  queue  until connection
  7616.                         made
  7617.  
  7618.    \QE                  Queue -- enter interactive redialing queue
  7619.  
  7620.    \QU[xx:yy]           Queue  Until -- redial from queue until  connecting
  7621.                         or time elapses
  7622.  
  7623.    \RB                  Review Buffer -- enter scroll-back buffer
  7624.  
  7625.    \RC                  Restore configured normal text Color
  7626.  
  7627.    \RE[macro]           REpeat macro indefinitely
  7628.  
  7629.    \REx[macro]          REpeat macro, x (1..32767) times
  7630.  
  7631.    \RS                  Restore screen  and  re-enable  displaying  of text
  7632.                         from modem (after \KS)
  7633.  
  7634.    \RVc[y]              Read Variable c (0..9,A..Z)  as  input  from modem,
  7635.                         with a  maximum  length  of  y  (1..80)  characters
  7636.                         before carriage return
  7637.  
  7638.    \RVc*[y]             Read  Variable  c (0..9,A..Z) as  above,  but  echo
  7639.                         asterisks instead of the actual characters read
  7640.  
  7641.  
  7642.  
  7643.    5.7:  BOYAN Power--Macros and Script Files                           130
  7644.    ________________________________________________________________________
  7645.  
  7646.  
  7647.  
  7648.  
  7649.    \RVc-[y]             Read  Variable  c (0..9,A..Z) as  above,  but  echo
  7650.                         nothing back to the modem
  7651.  
  7652.    \RVc+[y]             Read  Variable  c  (0..9,A..Z)  as above, with word
  7653.                         wrap
  7654.  
  7655.    \RX[-x]              Relative  X-position; move cursor x columns to  the
  7656.                         left
  7657.  
  7658.    \RX[x]               Relative  X-position; move cursor x columns to  the
  7659.                         right
  7660.  
  7661.    \RY[-y]              Relative Y-position; move cursor y rows up
  7662.  
  7663.    \RY[y]               Relative Y-position; move cursor y rows down
  7664.  
  7665.    \SB                  Send modem Break signal
  7666.  
  7667.    \SC[filename]        Invoke   script   (.BSC  extension   optional)   as
  7668.                         subroutine
  7669.  
  7670.    \SC[filename;label]  Invoke specified  block  from  specified  script as
  7671.                         subroutine
  7672.  
  7673.    \SK+                 Select Secondary Keyset (turn scroll lock ON)
  7674.  
  7675.    \SK-                 Deselect Secondary Keyset (turn scroll lock OFF)
  7676.  
  7677.    \SK*                 Toggle Secondary Keyset (toggle scroll lock)
  7678.  
  7679.    \SL[x]               Set Line pacing to x (0..255) milliseconds
  7680.  
  7681.    \SMx[string]         Set BOYAN Macro x (1..120) to string
  7682.  
  7683.    \SN[string]          Display string on right side of status  line (where
  7684.                         the System Name is usually displayed)
  7685.  
  7686.    \SP[x]               Set character Pacing to x (0..255) milliseconds
  7687.  
  7688.    \SS                  Save current Screen image to the screen dump file
  7689.  
  7690.    \ST[string]          Display string on STatus line
  7691.  
  7692.    \SVc[string]         Set variable c (0..9,A..Z) to string
  7693.  
  7694.    \TMx[string]         Set secondary/Terminal keyset Macro x  (41..110) to
  7695.                         string
  7696.  
  7697.    \TO[x]               Set handshake TimeOut to x (0..255) seconds
  7698.  
  7699.  
  7700.  
  7701.    5.7:  BOYAN Power--Macros and Script Files                           131
  7702.    ________________________________________________________________________
  7703.  
  7704.  
  7705.  
  7706.  
  7707.    \TR+                 Turn on TRace mode
  7708.  
  7709.    \TR-                 Turn off TRace mode
  7710.  
  7711.    \TR*                 Toggle TRace mode
  7712.  
  7713.    \TT+                 Turn Translation/filter Table on
  7714.  
  7715.    \TT-                 Turn Translation/filter Table off
  7716.  
  7717.    \TT*                 Toggle Translation/filter Table
  7718.  
  7719.    \TVc[y]              Set variable  c  (0..9,A..z)  to  the  contents  of
  7720.                         secondary/Terminal keyset Macro y (41..110)
  7721.  
  7722.    \UF+                 Usage   log  File  on  (using  default  usage   log
  7723.                         filename)
  7724.  
  7725.    \UF+[filename]       Turn on Usage log File specified by filename
  7726.  
  7727.    \UF-                 Usage log File off
  7728.  
  7729.    \UF*                 Toggle Usage log File
  7730.  
  7731.    \UL[]                UpLoad file, prompting for protocol and filename
  7732.  
  7733.    \ULc[]               UpLoad file using specified protocol c
  7734.  
  7735.    \UL[filename]        UpLoad  specified  file  using  default   protocol,
  7736.                         prompting for confirmation
  7737.  
  7738.    \UL-[filename]       UpLoad  file  using default  protocol  immediately,
  7739.                         bypassing all prompts
  7740.  
  7741.    \ULc[filename]       UpLoad  specified file using protocol c,  prompting
  7742.                         for confirmation
  7743.  
  7744.    \ULc-[filename]      UpLoad  specified file using protocol c,  bypassing
  7745.                         all prompts
  7746.  
  7747.    \UM[string]          Enter Usage Message string into usage log  file (if
  7748.                         usage file is on)
  7749.  
  7750.    \UNstring[macro]     Repeatedly execute macro UNtil string  arrives from
  7751.                         modem
  7752.  
  7753.    \UTxx:yy[macro]      Repeatedly execute macro Until specified  Time (24-
  7754.                         hour notation)
  7755.  
  7756.  
  7757.  
  7758.    5.7:  BOYAN Power--Macros and Script Files                           132
  7759.    ________________________________________________________________________
  7760.  
  7761.  
  7762.  
  7763.  
  7764.    \WF[]                Wait For any character to arrive from modem
  7765.  
  7766.    \WF[string]          Wait For string to arrive from modem
  7767.  
  7768.    \WL                  Wait for new Line
  7769.  
  7770.    \WP[x]               Wait  for  a  Pause  of  x  seconds  in the  remote
  7771.                         system's input
  7772.  
  7773.    \WW+                 Automatic Word-Wrap detection  for  Message Uploads
  7774.                         on
  7775.  
  7776.    \WW-                 Automatic Word-Wrap detection  for  Message Uploads
  7777.                         off
  7778.  
  7779.    \WW*                 Toggle between \WW+ and \WW-
  7780.  
  7781.    \XX+                 Use Xon/Xoff handshaking
  7782.  
  7783.    \XX-                 Do not use Xon/Xoff handshaking
  7784.  
  7785.    \XX*                 Toggle between \XX+ and \XX-
  7786.  
  7787.    \ZS                  Zap (clear) Screen
  7788.  
  7789.    \+Vc[y]              Numerically adds y to the  contents  of  variable c
  7790.                         (0..9,A..Z).
  7791.  
  7792.    \+Vc[-y]             Numerically  subtracts  y  from  the   contents  of
  7793.                         variable c (0..9,A..Z).
  7794.  
  7795.  
  7796.  
  7797.  
  7798.  
  7799.  
  7800.  
  7801.  
  7802.  
  7803.  
  7804.  
  7805.                                   Appendix A
  7806.  
  7807.                       HELP!  Common Questions & Answers
  7808.  
  7809.  
  7810.    A.1  Modem Questions
  7811.  
  7812.  
  7813.    Q. "Why doesn't BOYAN dial my modem properly?"
  7814.    A. BOYAN comes preset for Hayes-style  modems  that dial using the  ATDT
  7815.    command.  If  you have a Hayes but wish to use pulse dialing rather than
  7816.    touch-tone, change this command to ATDP@SF{ .  To set BOYAN  for another
  7817.    kind of modem, consult your modem's manual and set the options in Config
  7818.    Area <M> accordingly.
  7819.  
  7820.    Q. "BOYAN says `dial despite carrier'  every  time I dial, and it always
  7821.    thinks the modem is connected.  Why?"
  7822.    A.  BOYAN  depends  on your modem to give accurate carrier status in the
  7823.    "modem status register."  You may have to  flick  a  toggle  switch (USR
  7824.    Courier) or type a modem command  (Hayes,  section 2.3.2) to get this to
  7825.    work  properly.  As a last resort, try  resetting  the  "Carrier  Detect
  7826.    Mask" in Config Area <E> (see section 3.8).  If your modem simply cannot
  7827.    be made to reflect the carrier signal properly, then you can disable the
  7828.    "dial despite carrier" message by setting option H to NO in  Config Area
  7829.    <E>.
  7830.  
  7831.    Q. "When I start BOYAN, all  of  BOYAN's commands seem to work properly,
  7832.    but I can't get any response from my modem.  What's going on?"
  7833.    A. The most likely problem is that you  have  selected  the  wrong modem
  7834.    serial device (port).  Press <Alt-P> to select a new serial  port (Com1,
  7835.    Com2,  Com3, or Com4).  Com1 is the first standard serial port, which is
  7836.    built-in  on  many  computers.  Com2 is the second port, usually used by
  7837.    internal modems or add-on serial cards.  Com3 and Com4  are non-standard
  7838.    ports which may be used if neither Com1 nor Com2  is  available for your
  7839.    modem.    If  using Com3 or Com4, you MUST explicitly configure the port
  7840.    "addresses" as explained in sections 3.2 and 3.8.
  7841.       The modem might also  appear  "dead"  if  you have configured CTS/RTS
  7842.    flow control ON (in Config Area <E>), when your modem  does  not in fact
  7843.    support CTS/RTS flow control.  In that case, turn flow control OFF.
  7844.       If you have selected the Host Mode's "Local Test" setting, then BOYAN
  7845.    will not send any information to the modem.  Press  <Alt-A>  to select a
  7846.    new  Action Module; the HOST BAM should be used only while the Host Mode
  7847.    script file is running.
  7848.  
  7849.    Q. "How does BOYAN determine the  number  of  data bits and stop bits to
  7850.    use when communicating?"
  7851.  
  7852.  
  7853.  
  7854.    Appendix A:  HELP!  Common Questions & Answers                       134
  7855.    ________________________________________________________________________
  7856.  
  7857.  
  7858.  
  7859.  
  7860.    A. BOYAN automatically uses  8  data bits whenever you select no parity,
  7861.    and  7  data bits with even or odd parity.  1 stop bit is  always  used.
  7862.    These settings should work for any connection.
  7863.  
  7864.    Q. "What can I do if the communications screen seems to `lock up' in the
  7865.    middle of a session?"
  7866.    A. First, try resetting the comm port by pressing <Alt-P>, <Enter>.   If
  7867.    that doesn't work, try pressing <Ctrl-C> or <Ctrl-Q> .  A  final command
  7868.    to try is <Ctrl-End>, which sends a modem break signal.
  7869.  
  7870.  
  7871.    A.2  DOS Questions
  7872.  
  7873.  
  7874.    Q. "BOYAN reports  that  it  doesn't  have  enough memory to Jump to DOS
  7875.    and/or use the scroll-back buffer.  How come?"
  7876.    A. BOYAN divides all available system RAM between the memory  needed for
  7877.    the DOS Shell and the memory  used  to  store scroll-back lines.  If you
  7878.    have  256K or less, you may not have enough memory to use both of  these
  7879.    features.  You can change the way BOYAN partitions your  system's memory
  7880.    in Config Area <S> (see section 3.5).
  7881.  
  7882.    Q. "Do I have to CHDIR into the BOYAN directory before running BOYAN?"
  7883.    A. No, not if your version of MS-DOS is numbered 3.0 or higher.  Suppose
  7884.    the BOYAN files are stored in your C:\BOY5 directory.  You may run BOYAN
  7885.    by simply typing C:\BOY5\BOYAN, no  matter which drive and directory are
  7886.    currently logged.
  7887.  
  7888.    Q. "My mouse isn't working properly with BOYAN."
  7889.    A. First check Configuration Area <S>, option <M> to make sure that "Use
  7890.    mouse if detected" is set  to  YES.    If  it is but BOYAN still doesn't
  7891.    recognize your mouse, you should consult your mouse manual to  make sure
  7892.    your mouse driver is being installed properly, either in your CONFIG.SYS
  7893.    or  AUTOEXEC.BAT file.  If your mouse driver program is old, it may help
  7894.    to acquire a more recent version.  Even if your mouse works in Microsoft
  7895.    Windows(TM) without a driver  installed,  you still do need to install a
  7896.    mouse driver for non-Windows applications such as BOYAN.
  7897.  
  7898.  
  7899.    A.3  BAM Questions
  7900.  
  7901.  
  7902.    Q. "Help, I'm stuck in DOORWAY mode and I can't get out!"
  7903.    A. You must press <Alt-Equals> to leave DOORWAY mode.  All other command
  7904.    key codes, including <F1> and <Alt-X>, are sent directly  to  the  modem
  7905.    instead of being processed by BOYAN.
  7906.  
  7907.  
  7908.  
  7909.    Appendix A:  HELP!  Common Questions & Answers                       135
  7910.    ________________________________________________________________________
  7911.  
  7912.  
  7913.  
  7914.  
  7915.    Q. "When I use VT-100 terminal emulation to  call  up  a  mainframe, the
  7916.    backspace key doesn't work."
  7917.    A. Most mainframes  expect  a  "DEL"  character  instead  of  the normal
  7918.    <Ctrl-H> backspace.  In BOYAN, press the <Del>  key  to  send  the "DEL"
  7919.    character.    You  may  also  swap  the  Backspace  and  Del   keys,  in
  7920.    Configuration Area <A>.
  7921.  
  7922.    Q. "Sometimes, when I select  a terminal emulation, BOYAN's command keys
  7923.    don't work."
  7924.    A. The terminal emulation  BAM's  provide  secondary definitions for all
  7925.    the cursor keys and function keys.  While <Scroll Lock> is locked, these
  7926.    secondary definitions override BOYAN's  normal  key  definitions.   Turn
  7927.    <Scroll Lock> OFF to use BOYAN's regular keyset.
  7928.  
  7929.    Q. "How can I link my computer with a friend's, to chat by modem?"
  7930.    A. One way is to use BOYAN's Host Mode, as described in section 4.8.  An
  7931.    alternative is to call by voice first.  Both of you should press <Alt-A>
  7932.    G  to  select  the "Gossip" BOYAN Action Module.  Also, press <Alt-P> to
  7933.    verify  that  both  you and your friend have selected the same speed and
  7934.    parity parameters.  Finally, one of you should type  ATA  <Enter>  while
  7935.    the other types ATD <Enter>.  After the "CONNECT" messages  appear, hang
  7936.    up  the  (voice) telephone.  You should then be able to  type  back  and
  7937.    forth  to each other or even transfer files if one party uploads and the
  7938.    other downloads.
  7939.  
  7940.  
  7941.    A.4  File Transfer Questions
  7942.  
  7943.  
  7944.    Q. "ASCII uploads are producing garbled results."
  7945.    A.    BOYAN may be sending characters too fast for your  modem  (or  the
  7946.    receiving modem)  to  handle  them.    In  that case, try increasing the
  7947.    Pacing settings in Configuration Area <E>, options <A> and <B>.
  7948.  
  7949.    Q. "When I do a Zmodem  download,  the file size isn't captured properly
  7950.    in the BOYAN.USE usage log."
  7951.    A.  DSZ, the Zmodem driver  program,  logs usage information to the file
  7952.    specified by the DSZLOG environment variable.  To make  DSZ  log  Zmodem
  7953.    transfer  information  to  the   BOYAN.USE   file,   add  the  line  SET
  7954.    DSZLOG=drive:\path\BOYAN.USE to your AUTOEXEC.BAT file.
  7955.  
  7956.  
  7957.  
  7958.    Appendix A:  HELP!  Common Questions & Answers                       136
  7959.    ________________________________________________________________________
  7960.  
  7961.  
  7962.  
  7963.  
  7964.    A.5  Macro Questions
  7965.  
  7966.  
  7967.    Q. "Can I get BOYAN to...
  7968.         ... clear the screen automatically before dialing?"
  7969.         ...  automatically  return  to  the  dialing   directory   after  I
  7970.    disconnect?"
  7971.         ... display the current time of day with a keypress?"
  7972.         ... run my favorite DOS program with the touch of a key?"
  7973.         ... toggle in and out of Gossip Mode by pressing <Alt-G>?"
  7974.    A.    Yes,  using BOYAN's Macro language.  These and many other examples
  7975.    are explained in section 5.3.
  7976.  
  7977.    Q. "I wrote a new BOYAN  start-up  macro  #9 (or any other BOYAN macro),
  7978.    but it's too long to fit in the 80-character space provided."
  7979.    A.  The solution is to break the macro in half.  Save the second half of
  7980.    the macro in an  unused  BOYAN  macro--say,  #60 (the <Ctrl-@> keystroke
  7981.    macro).    Then  save your macro's first half in its normal place, macro
  7982.    #9,  but  append  the  command  \MA[60].    When  the \MA[60] command is
  7983.    reached, macro #60 will be executed, completing your long macro.
  7984.  
  7985.    Q. "Is there any way to restore the original 120 BOYAN Macros?"
  7986.    A.  Just delete the BOYAN.MAC file from your disk before entering BOYAN.
  7987.    When you run BOYAN, the original BOYAN.MAC will be recreated.
  7988.  
  7989.  
  7990.    A.6  Miscellaneous
  7991.  
  7992.  
  7993.    Q. "BOYAN came  packaged with my brand-new $200 modem.  Why do I have to
  7994.    pay any more to use it?"
  7995.    A.  BOYAN Communications  receives  absolutely  no compensation from the
  7996.    modem manufacturers.  Please see section 1.2 for  information  about the
  7997.    ShareWare system.
  7998.  
  7999.    Q. "How can I find out about new terminal emulations,  enhancements, and
  8000.    upgrades to BOYAN 5?"
  8001.    A.    The  BOYAN Support BBS always carries the latest version of BOYAN,
  8002.    including the most recent Action Modules, script files, etc.  Registered
  8003.    users will be notified about major upgrades by mail.
  8004.  
  8005.    Q. "What if I like  BOYAN  but  need  specific  changes?  Can I have the
  8006.    welcome screen customized for my corporation?"
  8007.    A. Although BOYAN's source code is not available, we will gladly  try to
  8008.    incorporate  specific  changes  for  out-of-the-ordinary  communications
  8009.    needs.  A customized welcome screen is available to any corporation that
  8010.    licenses seven or more copies of BOYAN, as described in section 1.2.2.
  8011.  
  8012.  
  8013.  
  8014.  
  8015.  
  8016.  
  8017.  
  8018.  
  8019.  
  8020.  
  8021.  
  8022.                                   Appendix B
  8023.  
  8024.                              BOYAN Error Messages
  8025.  
  8026.  
  8027.     - "BOYAN cannot fit in the available memory!"  In  this  case,  perhaps
  8028.       you can make more room for BOYAN by rebooting without  installing any
  8029.       memory-resident programs.  BOYAN has minimal memory  requirements, so
  8030.       this condition should be rare.
  8031.  
  8032.     - "Com1 not ready! Use Com2?", etc.    If BOYAN detects a problem while
  8033.       initializing the serial port, it will give you the chance  to specify
  8034.       a  different  port  before entering the program.  Press N to go ahead
  8035.       and  try  to use the port which is not ready, or press Y to  use  the
  8036.       alternate port BOYAN offers.
  8037.  
  8038.     - "Endless loop."   Because of memory limitations, recursive nesting in
  8039.       a macro or script cannot exceed approximately 20 levels of depth.  If
  8040.       it  ever  does,  BOYAN reports this error message.  In a script, this
  8041.       message might indicate that  you  have  used  the \BL[..] (call block
  8042.       recursively) command where you should  have  used  the  \GB[..] (Goto
  8043.       Block) command.
  8044.  
  8045.     - "No memory for DOS Shell!"  This message probably means that you have
  8046.       run BOYAN  from  within  too  small a DOS shell.  For a discussion of
  8047.       BOYAN's memory handling, please see section 3.5.
  8048.  
  8049.     - "Overlay not found!",  "BOYAN.HLP  not found!", or "Couldn't load any
  8050.       Action  Module!"    These  errors  will occur if the necessary  BOYAN
  8051.       auxiliary files are not located in the current DOS directory.
  8052.  
  8053.     - "Serious module malfunction."  This  ominous  message  indicates that
  8054.       the BAM file you chose is not a valid Action Module for BOYAN 5.
  8055.  
  8056.     - "Unable to create BOYAN.FON!", "Unable to create BOYAN.MAC!", "Unable
  8057.       to create BOYAN.CNF!"  Probable causes of these  messages  are either
  8058.       1) Your disk is  write-protected,  or  2) Your  disk  is  full.   The
  8059.       required BOYAN  files  will  fit  on  a  single diskette with room to
  8060.       spare.
  8061.  
  8062.     - "Unknown variable %XY", "Unknown command  \XY",  "\XY  command syntax
  8063.       error", "\XY expects +,-,or *".  The macro  command  compiler reports
  8064.       these basic error conditions.  Macro processing stops  after  such an
  8065.       error.
  8066.  
  8067.  
  8068.  
  8069.  
  8070.  
  8071.  
  8072.  
  8073.  
  8074.  
  8075.  
  8076.  
  8077.                                   Appendix C
  8078.  
  8079.                            Glossary of BOYAN Terms
  8080.  
  8081.  
  8082.    The   following  few  definitions--some  standard  "computerese",   some
  8083.    specific  to the BOYAN program--will be useful as  you  start  out  with
  8084.    BOYAN:
  8085.  
  8086.    Action Module        general  name  for  files  telling  BOYAN  "how  to
  8087.                         act"--how to interpret what you  type,  and  how to
  8088.                         interpret what the remote system sends back.  There
  8089.                         is exactly one Action Module active  at  all times.
  8090.                         Terminal emulations, gossip mode, and host mode are
  8091.                         all examples of BOYAN Action Modules.  BOYAN stores
  8092.                         its Action Modules in files with the ".BAM" suffix.
  8093.  
  8094.    carrier signal       the signal that your  modem  should  send  to BOYAN
  8095.                         whenever it is connected to another  system.   Also
  8096.                         called the CD (Carrier Detect) signal.
  8097.  
  8098.    default              the value something  gets if you don't specifically
  8099.                         change it.  For example,  the  first  time  you run
  8100.                         BOYAN, all options are set to their default values.
  8101.                         Similarly, at most  BOYAN prompts, BOYAN provides a
  8102.                         default answer  which  you  may  select  by  simply
  8103.                         pressing  <Enter> or  clicking  your  mouse's  left
  8104.                         button.
  8105.  
  8106.    downloading          receiving a DOS file from  the  remote  system, via
  8107.                         your modem.
  8108.  
  8109.    keyset               the keyboard's function keys and cursor keys, along
  8110.                         with  the  BOYAN   commands  they  perform.    Many
  8111.                         terminal emulations have a "secondary keyset" which
  8112.                         allows those keys to act as special  terminal keys,
  8113.                         as well as normal BOYAN command keys.
  8114.  
  8115.    macro                a  line  of  BOYAN instructions.  If  you  know  in
  8116.                         advance what you want BOYAN to do, you can put your
  8117.                         instructions into a macro, and then run  that macro
  8118.                         later with a single  keystroke.    BOYAN's powerful
  8119.                         macro   language  is  the  key  to  its   unmatched
  8120.                         flexibility.
  8121.  
  8122.  
  8123.  
  8124.    Appendix C:  Glossary of BOYAN Terms                                 139
  8125.    ________________________________________________________________________
  8126.  
  8127.  
  8128.  
  8129.  
  8130.    overlay              the BOYAN.000 through BOYAN.006 files on your BOYAN
  8131.                         disk.  Never remove the disk containing these files
  8132.                         while BOYAN is running.
  8133.  
  8134.    protocol             any  of  the methods available  for  uploading  and
  8135.                         downloading  files.  The best protocols use  error-
  8136.                         checking to guarantee file integrity without sacri-
  8137.                         ficing transmission speed.  Some protocols, such as
  8138.                         Zmodem and  Kermit,  are  "external,"  meaning they
  8139.                         require  a  supplemental program on  your  disk  in
  8140.                         order to work with BOYAN.
  8141.  
  8142.    remote system        who's on the other  end  of  the  modem connection.
  8143.                         Databases  and bulletin board systems are  examples
  8144.                         of remote systems.
  8145.  
  8146.    script file          a text  file consisting of multiple macros.  If you
  8147.                         plan  carefully,  a  script  file  can  be  used to
  8148.                         automate complex communications  chores,  even when
  8149.                         the computer is unattended.  BOYAN script filenames
  8150.                         have a suffix of ".BSC".
  8151.  
  8152.    terminal emulation   Mainframe computers normally  expect to be used via
  8153.                         special  "smart  terminals,"  which  interpret  the
  8154.                         mainframe's  display output, and also send  special
  8155.                         key sequences back.   BOYAN's emulations allow your
  8156.                         computer to mimic such a terminal.
  8157.  
  8158.    terminal mode        BOYAN's normal mode of operation, in which all text
  8159.                         arriving  from  the  modem  is  displayed  on  your
  8160.                         screen, and all keys you  press  (except  for BOYAN
  8161.                         commands) are sent out over the  modem.   Sometimes
  8162.                         this is also called BOYAN's  "Communications ready"
  8163.                         screen.
  8164.  
  8165.    uploading            sending a DOS  file  to the remote system, via your
  8166.                         modem.
  8167.  
  8168.  
  8169.  
  8170.  
  8171.  
  8172.  
  8173.  
  8174.  
  8175.  
  8176.  
  8177.  
  8178.                                   Appendix D
  8179.  
  8180.                          The VT-100 Secondary Keyset
  8181.  
  8182.  
  8183.    D.1  Default Key Layout
  8184.  
  8185.  
  8186.    When using any terminal emulation,  you must press the <Scroll-Lock> key
  8187.    to activate its "secondary keyset."  The Status Line  displays  a  small
  8188.     2 
  8189.        to indicate that the secondary keyset is in use.
  8190.  
  8191.    BOYAN's VT-100  keyset  is  tailored  to  the  Emacs editor used on most
  8192.    mainframes.  When <Scroll-Lock> is locked, the following key definitions
  8193.    take effect:
  8194.  
  8195.    BOYAN Key       EMACS Function        BOYAN Key      EMACS Function
  8196.    <Left-Arrow>    left 1 character      <Ctrl-Left>    left 1 word
  8197.    <Right-Arrow>   right 1 character     <Ctrl-Right>   right 1 word
  8198.    <Up-Arrow>      up 1 line
  8199.    <Down-Arrow>    down 1 line           <Ins>          toggle insert mode
  8200.  
  8201.    <Home>          to start of line      <F3>           set mark
  8202.    <End>           to end of line        <F4>           copy region
  8203.    <PgUp>          scroll back 1 page    <F5>           delete region
  8204.    <PgDn>          scroll fwd 1 page     <F6>           yank region
  8205.  
  8206.    <Ctrl-Home>     to start of buffer    <F9>           scroll up 1 line
  8207.    <Ctrl-End>      to end of buffer      <F10>          scroll down 1 line
  8208.    <Ctrl-PgUp>     PgUp other window     <Ctrl-F9>      F9 other window
  8209.    <Ctrl-PgDn>     PgDn other window     <Ctrl-F10>     F10 other window
  8210.  
  8211.    The secondary keyset  also  makes  use  of the IBM-PC's function keys to
  8212.    emulate the VT-100's numeric  keypad.    The following chart illustrates
  8213.    how your 10 Alt-function keys and 10 Shift-function  keys  correspond to
  8214.    the 18 keys of the VT-100 keypad:
  8215.  
  8216.  
  8217.  
  8218.    Appendix D:  The VT-100 Secondary Keyset                             141
  8219.    ________________________________________________________________________
  8220.  
  8221.  
  8222.  
  8223.  
  8224.                 BOYAN Function Keys              VT-100 Keypad
  8225.  
  8226.         <AF1> - <AF10> <SF1> - <SF10>
  8227.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8228.          |PF1 | |PF2 |  |PF3 | |PF4 |     |PF1 | |PF2 | |PF3 | |PF4 |
  8229.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8230.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8231.          | 7  | | 8  |  | 9  | | -  |     | 7  | | 8  | | 9  | | -  |
  8232.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8233.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8234.          | 4  | | 5  |  | 6  | | ,  |     | 4  | | 5  | | 6  | | ,  |
  8235.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8236.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ +----+
  8237.          | 1  | | 2  |  | 3  | |ENT |     | 1  | | 2  | | 3  | |    |
  8238.          +----+ +----+  +----+ +----+     +----+ +----+ +----+ |  E |
  8239.          +----+ +----+  +----+ +----+     +-----------+ +----+ |  N |
  8240.          | 0  | | 0  |  | .  | |ENT |     |     0     | | .  | |  T |
  8241.          +----+ +----+  +----+ +----+     +-----------+ +----+ +----+
  8242.  
  8243.  
  8244.    D.2  Customization
  8245.  
  8246.  
  8247.    The standard mapping of the function keys may be modified in any way you
  8248.    find convenient.  Here's how to customize the VT-100 secondary keyset:
  8249.  
  8250.       1.  Type <Alt-C> A to enter Configuration Area <A>:  Action Modules.
  8251.  
  8252.       2.  Type  C 1 to select VT-100 as the current action module, if it is
  8253.           not already current.
  8254.  
  8255.       3.  Press E to begin  editing  the VT-100 secondary keyset.  You will
  8256.           be  presented  with  a menu of the  70  user-definable  keystroke
  8257.           macros, separated into seven ranges of ten macros each.
  8258.  
  8259.       4.  Press the key which you want to re-assign, e.g.  <Alt-F1>.    (If
  8260.           you  prefer,  you  may first press a letter from E-J to display a
  8261.           range of ten keystroke macros, and then select the key to  be re-
  8262.           assigned.)
  8263.  
  8264.       5.  In the table below, look up  the  VT-100 key which you would like
  8265.           to bind to Alt-<F1> (or whatever  key  you have chosen).  Type in
  8266.           the BOYAN macro associated with that VT-100 key, exactly as shown
  8267.           in  the table, and press <Enter>.  Your  new  key  assignment  is
  8268.           saved to the VT-100.CNF file on disk.
  8269.  
  8270.       6.  Repeat  these  last  two  steps  until  the  secondary keyset  is
  8271.           arranged precisely to your liking!
  8272.  
  8273.  
  8274.  
  8275.    Appendix D:  The VT-100 Secondary Keyset                             142
  8276.    ________________________________________________________________________
  8277.  
  8278.  
  8279.  
  8280.  
  8281.    VT-100 Key      BOYAN Macro        VT-100 Key     BOYAN Macro
  8282.    <PF1>-Gold         ^[OP            Keypad 0          ^[Op
  8283.    <PF2>-Help         ^[OQ            Keypad 1          ^[Oq
  8284.    <PF3>-Next         ^[OR            Keypad 2          ^[Or
  8285.    <PF4>-DelBrk       ^[OS            Keypad 3          ^[Os
  8286.                                       Keypad 4          ^[Ot
  8287.    <Up-Arrow>         ^[[A            Keypad 5          ^[Ou
  8288.    <Down-Arrow>       ^[[B            Keypad 6          ^[Ov
  8289.    <Right-Arrow>      ^[[C            Keypad 7          ^[Ow
  8290.    <Left-Arrow>       ^[[D            Keypad 8          ^[Ox
  8291.                                       Keypad 9          ^[Oy
  8292.    Backspace DEL      \CH[127]        Keypad -          ^[Om
  8293.    Keypad <Enter>     ^[OM            Keypad ,          ^[Ol
  8294.                                       Keypad .          ^[On
  8295.  
  8296.  
  8297.  
  8298.  
  8299.  
  8300.  
  8301.  
  8302.  
  8303.  
  8304.  
  8305.  
  8306.  
  8307.  
  8308.  
  8309.  
  8310.                                     Index
  8311.  
  8312.  
  8313.     16550AN UART 84                      Alt-T 40
  8314.     43-line mode 40                      Alt-U 61
  8315.     \\ macro comment 100                 Alt-V 65, 105
  8316.     \+V macro command 100                Alt-W 65, 105
  8317.     @ variable prefix 116                Alt-X 40
  8318.     1K-Xmodem 55                         Alt-Y 65
  8319.                                          Alt-Z 41
  8320.     A                                    alternate dialing command 19, 30
  8321.     \AB macro command 100                \AM macro command 84
  8322.     Action Module 33, 52, 138            %AM macro variable 84
  8323.        default 33                        %AN macro variable 84
  8324.     \AD macro command 88                 %AP macro variable 84
  8325.     address 7                            arithmetic 100
  8326.     ADM-3A 53                            ASCII 56
  8327.     \AF macro command 94                 \AT macro command 100
  8328.     \AL macro command 90                 %AU macro command 96
  8329.     alarm 51                             %AU macro variable 96
  8330.        level 20                          auto-downloading 38, 57
  8331.     Alt-Equals 52                           default 25
  8332.     Alt-A 52                                macro 32
  8333.     Alt-B 40                             Auto-find transfer filename 25
  8334.     Alt-C 16                             AUTOEXEC.BAT 135
  8335.     Alt-D 41, 108                        \AV macro command 91
  8336.     Alt-E 40
  8337.     Alt-F 61                             B
  8338.     Alt-F1 39                            \B8 macro command 84
  8339.     Alt-F10 104                          %B8 macro variable 84
  8340.     Alt-G 40                             %B: macro variable 94
  8341.     Alt-H 49                             Backspace 34, 78
  8342.     Alt-I 73                             Backspace Editor 78
  8343.     Alt-J 64                             BAM See: Action Module
  8344.     Alt-K 32                             Basic Commands 39
  8345.     Alt-L 60, 105                        batch transfers 57
  8346.     Alt-M 71                             \BB macro command 91
  8347.     Alt-N 65, 104                        \BC macro command 85
  8348.     Alt-O 40                             \BD macro command 84
  8349.     Alt-P 49                             %BD macro variable 84
  8350.     Alt-Q 50                             Beeps & Bells 40
  8351.     Alt-R 66, 105                           default 20
  8352.     Alt-S 60                             Bimodem 56
  8353.  
  8354.  
  8355.  
  8356.    Index                                                                144
  8357.    ________________________________________________________________________
  8358.  
  8359.  
  8360.  
  8361.  
  8362.     \BL script command 111               configuration 16
  8363.     BOYAN Action Module  See: Action        dialing 30, 133
  8364.        Module                               disk 21
  8365.     BOYAN.CNF 11                            expert communications 26
  8366.     BOYAN Commands 39                       file transfers 21
  8367.     BOYAN.FON 11, 22                        Hayes modem 12
  8368.     BOYAN.LOG 23                            macros 28
  8369.     BOYAN.MAC 11, 104, 136                  memory 134
  8370.     BOYAN.PWD 11                            modem 24
  8371.     BOYAN Support BBS 7                     Practical  Peripherals  modem
  8372.     BOYAN.USE 23, 61                        12
  8373.     break signal 52, 84, 134                screen 19
  8374.     \BU macro command 84                    USR Courier HST modem 18
  8375.     %BU macro variable 84                CONTROL Action Module 53
  8376.     bulk discounts 5                     control characters 28
  8377.     Bulletin Board Systems 53            copying files 63
  8378.     \BW macro command 85                 Copyright 4
  8379.                                          Corporate Licenses 5
  8380.     C                                    \CP macro command 83
  8381.     %C: macro variable 94                CRC-Xmodem 55
  8382.     \CA macro command 82                 credit card orders 5
  8383.     Call Data Standard 61                \CS macro command 83
  8384.     Call Waiting 49                      \CT macro command 85
  8385.     carrier signal 11, 26, 133, 138      Ctrl-Backspace 78
  8386.     \CB macro command 102                Ctrl-End 52
  8387.     \CC macro command 88                 Ctrl-LeftArrow 78
  8388.     \CD macro command 83                 Ctrl-PgUp 62, 64
  8389.     Centrex 48                           Ctrl-PrtSc 61
  8390.     \CF macro command 94                 Ctrl-RightArrow 78
  8391.     \CH macro command 83                 CTS/RTS flow control 26, 133
  8392.     change parameters 49                 customizing BOYAN 16
  8393.     character pacing 26                  cycle dialing 31, 42
  8394.     chat mode 54
  8395.     CIS.BSC 114                          D
  8396.     clear screen 41                      %D: macro variable 96
  8397.     \CM macro command 83                 %DA macro variable 86
  8398.     \CO macro command 88                 data bits 50, 133
  8399.     colors 20, 40                        \DC macro command 94
  8400.        customizing 20                    \DD macro command 83
  8401.     Com3 port 27                         dedicated printing 54
  8402.     Com4 port 28                         default 138
  8403.     command line 110                     DEL character 34, 52
  8404.     Command Menu 13, 39, 102             Del key 34, 52
  8405.     comment                              deleting files 63
  8406.        macro 100                         DesqView 12
  8407.     COMMENTS.HOS 74, 76                  \DI macro command 88
  8408.     CompuServe 24, 46, 114               dial despite carrier 27, 133
  8409.        file transfer 57                  dialing 41
  8410.     conclude macro 31                       cycle 31
  8411.  
  8412.  
  8413.  
  8414.    Index                                                                145
  8415.    ________________________________________________________________________
  8416.  
  8417.  
  8418.  
  8419.  
  8420.        modem command 30, 48, 133         emulation      See:     terminal
  8421.           alternate 19, 30, 45              emulation
  8422.     dialing directory 49                 error messages 137
  8423.        alphabetizing 44                  Esc key 13
  8424.        baud rate fill 44                 Escape character 28
  8425.        codes 42                          ETCH.BSC 114
  8426.        deleting 44                       Everfax modems 31
  8427.        edit entry 45                     \EX macro command 102
  8428.        exchange 48                       exiting BOYAN 40, 102
  8429.        file ASCII copy 23, 46
  8430.        grab # feature 46                 F
  8431.        locate 47                         %F: macro variable 88
  8432.        multiple 47                       \FC macro command 85
  8433.        print 47                          \FD macro command 88
  8434.     Disclaimer 7                         %FD macro variable 88
  8435.     disk logging 23, 60                  \FE macro command 95
  8436.     distribution                         file listing 65
  8437.        ShareWare 6                       The File Manager 61
  8438.     \DL macro command 96                    sorting 22
  8439.     \DM macro command 91                 file size information 63
  8440.     %DM macro variable 91                file transfer 55
  8441.     \DMC macro command 91                   auto-find filename 25, 57
  8442.     %DN macro variable 93                   batch 56
  8443.     DOORWAY.EXE 72, 74                      downloading 59
  8444.     DOORWAY Module 54                          directory 22
  8445.     DOS shell 21, 41, 64, 65                efficiency 60
  8446.     downloading 138, See  Also: file        protocols 139
  8447.        transfer                                1K-Xmodem 55
  8448.     \DP macro command 97                       ASCII 56
  8449.     %DP macro variable 97                      batch-Ymodem 56
  8450.     %DR macro variable 95                      Bimodem 56
  8451.     %DS macro variable 95                      Compuserve-B 57
  8452.     DSZLOG environment variable 135            CRC-Xmodem 55
  8453.     \DT macro command 83                       default 25, 46, 58, 59, 97
  8454.     DTR signal 11, 26                          external 36, 56
  8455.     DUMBTERM 54                                G-Ymodem 56
  8456.     duplex toggle 40                           Kermit 56, 57
  8457.     \DV macro command 98                       Megalink 57
  8458.                                                MPt 57
  8459.     E                                          Relaxed Xmodem 55
  8460.     \EB script command 111                     Sealink 57
  8461.     \EC macro command 85                       Xmodem 55
  8462.     %EC macro variable 85                      Ymodem 55
  8463.     echo keyboard 40                           Ymodem-batch 57
  8464.        default 24                              Zmodem 56, 57
  8465.     editing files 22, 64, 65                uploading 58, 64
  8466.     elapsed-time clock 13                      directory 22
  8467.     \EM macro command 100                      message 58
  8468.     Emacs editor 55, 140                 file viewing 22
  8469.  
  8470.  
  8471.  
  8472.    Index                                                                146
  8473.    ________________________________________________________________________
  8474.  
  8475.  
  8476.  
  8477.  
  8478.     \FM macro command 95                 %IK macro variable 101
  8479.     FON files 47                         %IM macro variable 101
  8480.        selection 63                      initialization string 31
  8481.     free disk space 25, 64, 65           Ins key 65
  8482.     \FS macro command 95                 installation 9
  8483.     Function Key Customization 32        Intel modems 19
  8484.     function key menu 39                 \IP macro command 97
  8485.     \FW macro command 85                 IRQ line 28, 83
  8486.                                          \IS macro command 89
  8487.     G                                    \IT macro command 97
  8488.     G-Ymodem 56                          \IV macro command 99
  8489.     \GB script command 111               \IW macro command 87
  8490.     \GL macro command 91
  8491.     %GL macro variable 91                J
  8492.     Glossary 138                         \JD macro command 95
  8493.     gossip mode 54, 109                  jump to DOS 21, 41, 64
  8494.     grab phone # feature 46
  8495.     graphics symbols 35                  K
  8496.     \GS script command 112               Kermit 57
  8497.     \GV macro command 98                 keyboard timeout 27
  8498.     \GX macro command 91                 keyset 138
  8499.     \GY macro command 91                 \KO macro command 112
  8500.                                          \KS macro command 92
  8501.     H                                    \KV macro command 99
  8502.     handshaking 26
  8503.     hanging up 30, 49                    L
  8504.     \HE macro command 102                %LC macro variable 96
  8505.     help screens 13                      \LD macro command 93
  8506.     High-Speed Modem 18                  %LD macro variable 93
  8507.     \HK macro command 102                Learn (Script) See: Script Learn
  8508.     HOST.BSC 114                            Facility
  8509.     Host Mode 71                         LeftArrow 78
  8510.        configuration 34                  \LF macro command 85
  8511.     HOST.USE 76                          %LF macro variable 85
  8512.     How to Order 5                       Licensing 4
  8513.     %HR macro variable 86                Line Editor 14
  8514.     \HU macro command 83                 line format 50
  8515.                                          Line pacing 26
  8516.     I                                    linefeeds 41
  8517.     IBM-3101 53                             default 25
  8518.     IBM PS/2                             LIST 22
  8519.        Com3 27                           \LM macro command 93
  8520.        Com4 28                           %LN macro variable 93
  8521.     \IE macro command 101                logon password 21, 46
  8522.     \IF macro command 86                 LOGON script block 112
  8523.     \II macro command 101                Long-Distance  Dialing  Prefixes
  8524.     %II macro variable 101                  48
  8525.     \IK macro command 101                \LV macro command 99
  8526.  
  8527.  
  8528.  
  8529.    Index                                                                147
  8530.    ________________________________________________________________________
  8531.  
  8532.  
  8533.  
  8534.  
  8535.     M                                    Mouse click macro 31
  8536.     \MA macro command 101                mouse interface 13, 21, 43,  51,
  8537.     %MA macro variable 83                   63, 67
  8538.     macro 28, 71, 138                    MPt protocol 57
  8539.        basic form 28
  8540.        Shortcut 30, 48                   N
  8541.        variables 117                     \NC macro command 92
  8542.     macro commands                       %NC macro variable 92
  8543.        dialing 88                        \ND macro command 96
  8544.        DOS 94                            new drive/directory 63, 65
  8545.        file transfers 96                 \NK macro command 103
  8546.        modem 82                          %NK macro variable 103
  8547.        pausing 86                        null modem 72
  8548.        queue 89                          Num-Lock 103
  8549.        repeat 102                        NUMBERS.TXT 23
  8550.        screen 90
  8551.        summary 120                       O
  8552.        terminal 84                       order form 5
  8553.        timing 86                         overlay 139
  8554.        trace 103
  8555.        user variables 98                 P
  8556.     Macro    Programming    Language     %P: macro variable 97
  8557.        80-103                            \PA macro command 86
  8558.     Manual Dialing 41                    pacing 135
  8559.     \MC macro command 92                    character 26
  8560.     %MC macro variable 92                   line 26
  8561.     %MD macro variable 83                parameter change 30, 49
  8562.     Megalink 57                          password 46
  8563.     memory usage 21                         default 21
  8564.     menus                                Password Security Feature 70
  8565.        user-defined 92                   PCBOARD.BSC 114
  8566.     Message Upload 56                    PgDn 59
  8567.     %MI macro variable 86                PgUp 58
  8568.     Microsoft Windows 12                 phone call log 61
  8569.     missing characters 19                phone order line 5
  8570.     %MN macro variable 83                PKUNZIP 75
  8571.     MNP 56                               \PL macro command 83
  8572.        configuration 19                  \PM macro command 93
  8573.     %MO macro variable 86                \PP macro command 93
  8574.     modem  break  signal  See: break     \PR macro command 93
  8575.        signal                            %PR macro variable 93
  8576.     modem messages 24                    Practical Peripherals 19
  8577.     modem settings 49                    print screen 61
  8578.        parity 11, 24                     printer
  8579.        port 11, 24                          dialing directory 47
  8580.           Com3 27                           init macro 32
  8581.           Com4 28                           logging 61
  8582.        speed 11, 24                         scroll-back buffer 67
  8583.     Modem Setup 11                       printing files 63
  8584.  
  8585.  
  8586.  
  8587.    Index                                                                148
  8588.    ________________________________________________________________________
  8589.  
  8590.  
  8591.  
  8592.  
  8593.     protocol See: file transfer             examples 114
  8594.     Protocol disk 18                        logon 112
  8595.     \PS macro command 93                    running 63, 66, 113
  8596.     \PU macro command 86                 Script Learn Facility 68
  8597.     pulse dialing 17                        Quick-learn 68
  8598.     purchase orders 6                    SCRNDUMP.TXT 23
  8599.     %PW macro variable 89                scroll-back buffer 21, 23, 66
  8600.     PWD file 46                          Scroll-Lock 53, 102
  8601.                                          %SE macro variable 86
  8602.     Q                                    SEAlink 57
  8603.     Q-time 50                            secondary keyset 13, 53
  8604.     \QA macro command 89                 Session Logging 60
  8605.     \QC macro command 90                 %SF macro variable 89
  8606.     \QD macro command 90                 ShareWare 6
  8607.     \QE macro command 90                    distributors 6
  8608.     %QS macro variable 90                Shift-PrtSc 61
  8609.     \QU macro command 90                 Shift-Tab 41
  8610.     Questions & Answers 133              shipping 5
  8611.     queue redialer 50                    Shortcut macros 30, 48
  8612.     Quick-learn script 68                site licenses 5
  8613.     Quick Reference Card 5               \SK macro command 102
  8614.                                          %SK macro variable 102
  8615.     R                                    \SL macro command 86
  8616.     RAM-resident programs 19             %SL macro variable 89
  8617.     \RB macro command 102                \SM macro command 103
  8618.     \RC macro command 92                 \SN macro command 92
  8619.     \RE macro command 102                %SN macro variable 89
  8620.     registration 4                       sound effects 20, 40
  8621.     Relaxed Xmodem 55                    \SP macro command 86
  8622.     remote system 139                    \SS macro command 93
  8623.     renaming files 64                    %SS macro variable 89
  8624.     Restore Default Text Color 40        \ST macro command 92
  8625.     <Return> character 29                start-up 11
  8626.     RightArrow 78                        start-up macro 31
  8627.     \RV macro command 99                 Status Line 12
  8628.     \RX macro command 92                 stop bits 50, 133
  8629.     \RY macro command 92                 strip 8th bit 36
  8630.                                          Support 7
  8631.     S                                    \SV macro command 100
  8632.     %S# macro variable 89                system requirements 9
  8633.     %S: macro variable 112                  memory 21
  8634.     \SB macro command 84
  8635.     %SC macro variable 112               T
  8636.     \SC script command 112               %T: macro variable 97
  8637.     SCRBACK.LOG 23                       Tab key 114
  8638.     screen dump 23, 60                   Tandy computers 53
  8639.     script files 111, 139                TCOMM.BSC 114
  8640.        blocks 111                        TED 22
  8641.        directory 23
  8642.  
  8643.  
  8644.  
  8645.    Index                                                                149
  8646.    ________________________________________________________________________
  8647.  
  8648.  
  8649.  
  8650.  
  8651.     terminal emulation 34, 53, 139       V
  8652.        secondary keyset 13, 53           %V0 macro variable 98
  8653.        VT-100 54, 140                    variables
  8654.     terminal keyset 53                      @ vs. % prefixes 116
  8655.     terminal mode 12, 139                   summary 117
  8656.     %TF macro variable 97                VARS.BSC 115
  8657.     %TI macro variable 97                viewing files 22, 64, 65
  8658.     timeout                              VT-52 53
  8659.        default 27                        VT-100 action module 54, 140
  8660.     \TM macro command 103
  8661.     \TO macro command 87                 W
  8662.     \TR macro command 103                %WC macro variable 96
  8663.     trace mode 103                       welcome screen 11
  8664.     translation table 40                    customization 6
  8665.     \TT macro command 85                 \WF macro command 87
  8666.     %TT macro variable 85                Windows 12
  8667.     \TV macro command 100                \WL macro command 87
  8668.     TVI-925 53                           word length 24
  8669.     typography 7                         word processor 22, 65
  8670.                                          word wrap auto-detection 25, 59
  8671.     U                                    \WP macro command 87
  8672.     %U: macro variable 96                *WRAPUP block 114
  8673.     UART                                 \WW macro command 98
  8674.        16550AN 84
  8675.     %UD macro variable 98                X
  8676.     \UF macro command 94                 Xmodem 55
  8677.     %UF macro variable 94                XON/XOFF flow control 26
  8678.     \UL macro command 98                 %XP macro variable 92
  8679.     \UM macro command 94                 \XX macro command 85
  8680.     \UN macro command 87
  8681.     %UN macro variable 94                Y
  8682.     unattended 114                       Ymodem 55
  8683.     Uniform Dialing Prefixes 48          Ymodem-batch 57
  8684.     Unix 55                              %YP macro variable 92
  8685.     UpArrow 66                           %YR macro variable 86
  8686.     uploading  139,  See  Also: file
  8687.        transfer                          Z
  8688.     usage log file 23, 61                zap screen 41
  8689.        macros 94                         ZIP files 9, 75, 109
  8690.        Zmodem transfers 135              Zmodem 57
  8691.     Users Groups 6                          usage log 135
  8692.     USR Courier HST 18                   \ZS macro command 93
  8693.     \UT macro command 86
  8694.  
  8695.  
  8696.  
  8697.  
  8698.  
  8699.  
  8700.  
  8701.  
  8702.  
  8703.                                About the Author
  8704.  
  8705.  
  8706.         Justin Boyan  was born in 1970 in State College, Pennsylvania.
  8707.         He grew up  in  Columbia, Maryland, where his favorite hobbies
  8708.         were   swimming,  playing  the  piano,  and  later,   computer
  8709.         programming.    His  interest  in  computers  began   when  he
  8710.         discovered his school's TRS-80  in  the  sixth grade ("I loved
  8711.         working with it, except for the time I accidentally blew  up a
  8712.         disk  drive").  He taught himself  BASIC,  and  later  learned
  8713.         Pascal as a  student  at Johns Hopkins University's Center for
  8714.         Talented Youth summer program.   Since age 16, he has returned
  8715.         to CTY each summer  as  a  member  of the mathematics teaching
  8716.         staff.  In 1987, he graduated first in his class  from Oakland
  8717.         Mills High School, where he was on the Math Team, Tennis Team,
  8718.         and state champion Computer Team.
  8719.  
  8720.         BOYAN Communications was  conceived  when  Justin  was  in the
  8721.         ninth grade, shortly after his  family acquired a modem.  With
  8722.         a vision  of what the "ideal communications software" would be
  8723.         and  the  encouragment  of  several  local  Sysops,  he  began
  8724.         creating  the  program.    BOYAN  version  1  was released  as
  8725.         ShareWare in October 1986.  Further revisions were released in
  8726.         1987 and 1989,  as  he continued perfecting the program during
  8727.         college.
  8728.  
  8729.         In  1991,  he  received  his  Bachelor  of  Science degree  in
  8730.         mathematics from the  University of Chicago.  His honors there
  8731.         included  election  to  Phi  Beta Kappa and the Cohen Memorial
  8732.         Prize for highest academic record in the field of mathematics.
  8733.         He also moonlighted as pianist for the campus  comedy  troupe.
  8734.         For the 1991-92 academic year, he has been awarded the Winston
  8735.         Churchill Scholarship  for  study  at Cambridge, where he will
  8736.         earn an M. Phil. in Computer Speech and  Language  Processing.
  8737.         He will continue his education  at Carnegie Mellon University,
  8738.         working toward a Ph.D. in Computer Science.
  8739.  
  8740.